Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContextWithScopes ¶
func ScopeMatch ¶
func ScopesMatch ¶
Types ¶
type ClaimsAuthoriser ¶
type ClaimsAuthoriser struct {
Predicate jwt.ClaimPredicate
}
ClaimsAuthoriser checks if the request satisfies a claim predicate.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles JWT authentication and sets the authenticated principal in the context.
func NewHandler ¶
func NewHandler(validator jwt.TokenValidator, cookieName string, logger zerolog.Logger, opts ...jwtmiddleware.Option) *Handler
type ResourceAuthoriser ¶
ResourceAuthoriser handles resource-level permissions (scopes).
func (*ResourceAuthoriser) RequireScope ¶
Click to show internal directories.
Click to hide internal directories.