Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + var AddressScopeSpecs = map[string]ClaimSpec + var CheckTokenClaimSpecs = map[string]ClaimSpec + var EmailScopeSpecs = map[string]ClaimSpec + var IdTokenBasicSpecs = map[string]ClaimSpec + var PhoneScopeSpecs = map[string]ClaimSpec + var ProfileScopeSpecs = map[string]ClaimSpec + var UserInfoBasicSpecs = map[string]ClaimSpec + func AccessTokenHash(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func AccountType(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func Address(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func Audience(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func AuthContextClassRef(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func AuthMethodRef(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func AuthenticationTime(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func ClientId(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func Currency(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func DefaultTenantId(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func Email(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func EmailVerified(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func ExpiresAt(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func FirstName(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func FullName(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func IssuedAt(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func Issuer(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func JwtId(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func LastName(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func LegacyAudience(ctx context.Context, opt *FactoryOption) utils.StringSet + func Locale(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func Nonce(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func NotBefore(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func OriginalUsername(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func Permissions(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func Populate(ctx context.Context, claims oauth2.Claims, opts ...FactoryOptions) error + func ProviderDescription(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func ProviderDisplayName(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func ProviderEmail(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func ProviderId(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func ProviderName(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func ProviderNotificationType(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func Roles(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func Scopes(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func Subject(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func TenantExternalId(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func TenantId(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func TenantSuspended(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func UserId(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + func Username(_ context.Context, opt *FactoryOption) (v interface{}, err error) + func ZoneInfo(_ context.Context, _ *FactoryOption) (v interface{}, err error) + type AddressClaim struct + City string + Country string + Formatted string + PostalCode string + Region string + StreetAddr string + type ClaimFactoryFunc func(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + type ClaimRequirementFunc func(ctx context.Context, opt *FactoryOption) bool + type ClaimSpec interface + Calculate func(ctx context.Context, opt *FactoryOption) (v interface{}, err error) + Required func(ctx context.Context, opt *FactoryOption) bool + func Optional(fn ClaimFactoryFunc) ClaimSpec + func Required(fn ClaimFactoryFunc) ClaimSpec + func RequiredIfImplicitFlow(fn ClaimFactoryFunc) ClaimSpec + func RequiredIfParamsExists(fn ClaimFactoryFunc, requestParams ...string) ClaimSpec + func Unsupported() ClaimSpec + type FactoryOption struct + AccessToken oauth2.AccessToken + AccountStore security.AccountStore + ClaimsFormula []map[string]ClaimSpec + ExtraSource map[string]interface{} + Issuer security.Issuer + RequestedClaims RequestedClaims + Source oauth2.Authentication + Specs []map[string]ClaimSpec + type FactoryOptions func(opt *FactoryOption) + func WithAccessToken(token oauth2.AccessToken) FactoryOptions + func WithAccountStore(accountStore security.AccountStore) FactoryOptions + func WithExtraSource(extra map[string]interface{}) FactoryOptions + func WithIssuer(issuer security.Issuer) FactoryOptions + func WithRequestedClaims(requested RequestedClaims, formula ...map[string]ClaimSpec) FactoryOptions + func WithSource(oauth oauth2.Authentication) FactoryOptions + func WithSpecs(specs ...map[string]ClaimSpec) FactoryOptions + type RequestedClaim interface + Essential func() bool + IsDefault func() bool + Values func() []string + type RequestedClaims interface + Get func(claim string) (RequestedClaim, bool)