context

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticatedCustomClaimsFromContext added in v0.2.0

func AuthenticatedCustomClaimsFromContext(ctx context.Context) (map[string]any, bool)

AuthenticatedCustomClaimsFromContext extracts the authenticated claims from context.

func AuthenticatedPrincipalFromContext

func AuthenticatedPrincipalFromContext(ctx context.Context) (string, bool)

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

func ContextWithAuthenticatedPrincipal(ctx context.Context, principal string) context.Context

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL