Skip to main content

Module middleware

Module middleware 

Source
Expand description

Static-Bearer authentication middleware for the NotedThat API.

Structs§

CredentialRefused
A credential was supplied and did not verify.

Functions§

auth_middleware
Axum middleware that establishes the request’s Principal.
extract_request_id
Extract the x-request-id value from request extensions, falling back to a generated UUID if the SetRequestId middleware hasn’t run yet.
is_internal_path
Returns whether a decoded, knowledge-base-relative path is in the internal namespace.
principal
The principal established at the HTTP boundary.
resolve_principal
Resolve a principal from a request’s Authorization headers.