Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingBearerToken = errors.Unauthorized(engine.Reason, "missing bearer token") ErrMissingKeyFunc = errors.Unauthorized(engine.Reason, "missing key func") ErrUnauthenticated = errors.Unauthorized(engine.Reason, "unauthenticated") ErrInvalidToken = errors.Unauthorized(engine.Reason, "invalid token") ErrTokenExpired = errors.Unauthorized(engine.Reason, "token expired") ErrUnsupportedSigningMethod = errors.Unauthorized(engine.Reason, "unsupported signing method") ErrInvalidClaims = errors.Unauthorized(engine.Reason, "invalid claims") ErrInvalidSubject = errors.Unauthorized(engine.Reason, "invalid subject") ErrGetKeyFailed = errors.Unauthorized(engine.Reason, "get key failed") ErrSignTokenFailed = errors.Unauthorized(engine.Reason, "sign token failed") )
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(opts ...Option) (engine.Authenticator, error)
NewAuthenticator creates a new authenticator with custom options
Types ¶
type Claims ¶
Claims contains claims that are included in OIDC standard claims. See https://openid.net/specs/openid-connect-core-1_0.html#IDToken
func (*Claims) GetSubject ¶
GetSubject returns a subject string
type Option ¶
type Option func(*options)
Option is jwt option
func WithSigningMethod ¶
WithSigningMethod set signing method
type ScopeSet ¶
ScopeSet see: https://datatracker.ietf.org/doc/html/rfc6749#section-3.3
Click to show internal directories.
Click to hide internal directories.