Documentation
¶
Index ¶
Constants ¶
View Source
const ( AKSAuthMode = "aks" ARCAuthMode = "arc" OBOAuthMode = "obo" ClientCredentialAuthMode = "client-credential" PassthroughAuthMode = "passthrough" )
View Source
const (
OrgType = "azure"
)
Variables ¶
View Source
var ErrClaimNotFound = fmt.Errorf("claim not found")
ErrorClaimNotFound indicates the given key was not found in the claims
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator struct { Options // contains filtered or unexported fields }
func (Authenticator) UID ¶
func (s Authenticator) UID() string
type Options ¶
type Options struct { Environment string ClientID string ClientSecret string TenantID string UseGroupUID bool AuthMode string AKSTokenURL string EnablePOP bool POPTokenHostname string PoPTokenValidityDuration time.Duration ResolveGroupMembershipOnlyOnOverageClaim bool SkipGroupMembershipResolution bool VerifyClientID bool ResourceId string AzureRegion string HttpClientRetryCount int }
func NewOptions ¶
func NewOptions() Options
type PoPTokenVerifier ¶ added in v0.9.0
type PoPTokenVerifier struct { PoPTokenValidityDuration time.Duration // contains filtered or unexported fields }
PopTokenVerifier is validator for PoP tokens.
func NewPoPVerifier ¶ added in v0.9.0
func NewPoPVerifier(hostName string, popTokenValidityDuration time.Duration) *PoPTokenVerifier
func (*PoPTokenVerifier) ValidatePopToken ¶ added in v0.9.0
func (p *PoPTokenVerifier) ValidatePopToken(token string) (string, error)
ValidatePopToken is validating the pop token RFC : https://datatracker.ietf.org/doc/html/rfc7800
Click to show internal directories.
Click to hide internal directories.