Expand description
Authorization: Bearer access tokens presented to this server’s own resource APIs.
Structs§
- Bearer
Grant - The user’s grant to the client a
BearerTokenwas issued to. - Bearer
Token - A still-valid Bearer token of an active user, issued to a client that may use Bearer tokens.
- Token
Subject - Who a request authenticated with an access token acts for. Token-authenticating middlewares put it in the request extensions, where per-user and per-grant rate limits read it.
Enums§
- Bearer
Token Error - Why a Bearer token wasn’t accepted.
Functions§
- bearer_
token - The token of an
Authorization: Bearer <token>header value, forresolve_bearer_token. - resolve_
bearer_ token - Resolves a token presented as
Authorization: Bearer. A sender-constrained (DPoP) token is rejected, since these APIs verify no proof of possession. Callers check scopes and audience. - split_
authorization - The scheme and credentials of an
Authorizationheader value. Schemes are case-insensitive (RFC 9110 §11.1), so compare them witheq_ignore_ascii_case.