Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecurityTokenServiceServer ¶
func NewSecurityTokenServiceServer(atr *ghinstallation.AppsTransport, ceclient cloudevents.Client, domain string, metrics bool) pboidc.SecurityTokenServiceServer
Types ¶
type OrgTrustPolicy ¶
type OrgTrustPolicy struct { TrustPolicy `json:",inline"` Repositories []string `json:"repositories,omitempty"` }
type TrustPolicy ¶
type TrustPolicy struct { Issuer string `json:"issuer,omitempty"` IssuerPattern string `json:"issuer_pattern,omitempty"` Subject string `json:"subject,omitempty"` SubjectPattern string `json:"subject_pattern,omitempty"` ClaimPattern map[string]string `json:"claim_pattern,omitempty"` Permissions github.InstallationPermissions `json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*TrustPolicy) CheckToken ¶
func (tp *TrustPolicy) CheckToken(token *oidc.IDToken) (Actor, error)
CheckToken checks the token against the trust policy.
func (*TrustPolicy) Compile ¶
func (tp *TrustPolicy) Compile() error
Compile checks the trust policy for validity, and prepares internal state for validating tokens.
Click to show internal directories.
Click to hide internal directories.