Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidTokenSignature = errors.New("invalid token signature")
ErrInvalidTokenSignature is raised when token is signed with a private key where the public key is not known by the keyset.
Functions ¶
func ValidateSignature ¶
func ValidateSignature(jwks *jose.JSONWebKeySet, signature *jose.JSONWebSignature) error
ValidateSignature validates given token using given JWKS.
func ValidateToken ¶
func ValidateToken(jwks *jose.JSONWebKeySet, token *jwt.JSONWebToken, claims any) error
ValidateToken validates given token using given JWKS.
Types ¶
type KeyProviderFunc ¶
KeyProviderFunc defines key provider contract.
type KeySetProviderFunc ¶
KeySetProviderFunc defines key set provider contract.
Click to show internal directories.
Click to hide internal directories.