Documentation
¶
Index ¶
- func AuthenticatedCustomClaimsFromContext(ctx context.Context) (map[string]any, bool)
- func AuthenticatedPrincipalFromContext(ctx context.Context) (string, bool)
- func AuthenticatedRegisteredClaimsFromContext(ctx context.Context) (jwtvalidator.RegisteredClaims, bool)
- func ContextWithAuthenticatedCustomClaims(ctx context.Context, claims map[string]any) context.Context
- func ContextWithAuthenticatedPrincipal(ctx context.Context, principal string) context.Context
- func ContextWithAuthenticatedRegisteredClaims(ctx context.Context, claims jwtvalidator.RegisteredClaims) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedCustomClaimsFromContext ¶ added in v0.2.0
AuthenticatedCustomClaimsFromContext extracts the authenticated claims from context.
func AuthenticatedPrincipalFromContext ¶
AuthenticatedPrincipalFromContext extracts the authenticated principal from context.
func AuthenticatedRegisteredClaimsFromContext ¶ added in v0.2.0
func AuthenticatedRegisteredClaimsFromContext(ctx context.Context) (jwtvalidator.RegisteredClaims, bool)
AuthenticatedRegisteredClaimsFromContext extracts the authenticated claims from context.
func ContextWithAuthenticatedCustomClaims ¶ added in v0.2.0
func ContextWithAuthenticatedCustomClaims(ctx context.Context, claims map[string]any) context.Context
ContextWithAuthenticatedCustomClaims stores the authenticated claims on the context.
func ContextWithAuthenticatedPrincipal ¶
ContextWithAuthenticatedPrincipal stores the authenticated principal on the context.
func ContextWithAuthenticatedRegisteredClaims ¶ added in v0.2.0
func ContextWithAuthenticatedRegisteredClaims(ctx context.Context, claims jwtvalidator.RegisteredClaims) context.Context
ContextWithAuthenticatedRegisteredClaims stores the authenticated claims on the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.