Expand description
Authentication middleware for the NotedThat API.
Structs§
- Credential
Refused - 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-idvalue from request extensions, falling back to a generated UUID if theSetRequestIdmiddleware 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.