Versions in this module Expand all Collapse all v0 v0.0.11 Jun 5, 2024 v0.0.10 Jun 5, 2024 v0.0.9 Jun 5, 2024 v0.0.8 Jun 5, 2024 v0.0.7 Jun 5, 2024 v0.0.6 Jun 4, 2024 v0.0.5 Jun 4, 2024 v0.0.4 Jun 4, 2024 v0.0.3 Jun 4, 2024 v0.0.2 Jun 4, 2024 v0.0.1 Jun 4, 2024 Changes in this version + const AccountIDSuffix + const DomainCategorySuffix + const DomainIDSuffix + const Invited + const LastLoginSuffix + const TokenUserProperty + const UserIDClaim + type AuthorizationClaims struct + AccountId string + Domain string + DomainCategory string + Invited bool + LastLogin time.Time + Raw jwt.MapClaims + UserId string + type ClaimsExtractor struct + FromRequestContext ExtractClaims + func NewClaimsExtractor(options ...ClaimsExtractorOption) *ClaimsExtractor + func (c *ClaimsExtractor) FromToken(token *jwt.Token) AuthorizationClaims + type ClaimsExtractorOption func(*ClaimsExtractor) + func WithAudience(audience string) ClaimsExtractorOption + func WithFromRequestContext(ec ExtractClaims) ClaimsExtractorOption + func WithUserIDClaim(userIDClaim string) ClaimsExtractorOption + type ExtractClaims func(r *http.Request) AuthorizationClaims + type JSONWebKey struct + E string + Kid string + Kty string + N string + Use string + X5c []string + type JWTValidator struct + func NewJWTValidator(issuer string, audienceList []string, keysLocation string, ...) (*JWTValidator, error) + func (m *JWTValidator) ValidateAndParse(token string) (*jwt.Token, error) + type Jwks struct + Keys []JSONWebKey + type Options struct + CredentialsOptional bool + Debug bool + EnableAuthOnOptions bool + SigningMethod jwt.SigningMethod + UserProperty string + ValidationKeyGetter jwt.Keyfunc