Expand description
Bearer token authentication middleware for the OAuth service.
Applied as an Axum middleware layer to the protected route group (SCIM user management). Public endpoints (discovery, token, authorize) bypass this layer.
On success, inserts AuthenticatedUser into request extensions so
downstream handlers can identify the caller.
Re-exports§
pub use crate::server::middleware::AuthenticatedUser;
Functions§
- require_
bearer_ token - Require a valid Bearer or DPoP token on the request.
- require_
global_ service_ authority - Restrict cross-tenant OAuth administration to a tenantless service authority.