package
0.0.82
Repository: https://github.com/mindersec/minder.git
Documentation: pkg.go.dev

# Packages

Package mock_jwt is a generated GoMock package.
Package noop provides a no-op implementation of the Validator interface.

# Functions

GetUserClaimFromContext returns the specified claim from the user subject in the context if found and of the correct type.
GetUserEmailFromContext returns the user email from the context, or an empty string.
GetUserSubjectFromContext returns the user subject from the context, or nil.
GetUserTokenFromContext returns the user token from the context.
NewJwtValidator creates a new JWT validator that uses a JWK set URL to validate the tokens.
WithAuthTokenContext stores the specified user-identifying token in the context.

# Structs

JwkSetJwtValidator is a JWT validator that uses a JWK set URL to validate the tokens.
KeySetCache is a KeySetFetcher that fetches the JWK set from a cache.

# Interfaces

KeySetFetcher provides the functions to fetch a JWK set.
Validator provides the functions to validate a JWT.