Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication pipeline policies.

Structs§

BearerTokenAuthorizationPolicy
Authentication policy for a bearer token.

Traits§

Authorizer
Helper trait used by OnChallenge and OnRequest to authorize requests. This trait is sealed and cannot be implemented outside of this module.
OnChallenge
Callback BearerTokenAuthorizationPolicy invokes when it receives a 401 Unauthorized response with an authentication challenge (WWW-Authenticate header).
OnRequest
Callback BearerTokenAuthorizationPolicy invokes on every request it receives, before sending the request.