Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithAuthClaims ¶
func ContextWithAuthClaims(parent context.Context, claims *AuthClaims) context.Context
ContextWithAuthClaims injects the provided AuthClaims into the parent context.
func ContextWithSkipAuthzCheck ¶
ContextWithSkipAuthzCheck attaches whether to skip authz check to the parent context.
func SkipAuthzCheckFromContext ¶
SkipAuthzCheckFromContext returns whether the authorize check can be skipped.
Types ¶
type AuthClaims ¶
AuthClaims contains claims that are included in OIDC standard claims. https://openid.net/specs/openid-connect-core-1_0.html#IDToken
func AuthClaimsFromContext ¶
func AuthClaimsFromContext(ctx context.Context) (*AuthClaims, bool)
AuthClaimsFromContext extracts the AuthClaims from the provided ctx (if any).
Click to show internal directories.
Click to hide internal directories.