Expand description
Static-Bearer authentication middleware for the NotedThat API.
Enums§
- Auth
Context - Authentication state established at the HTTP boundary.
Functions§
- auth_
context - Return the request authentication context, defaulting to anonymous when the auth layer has not run.
- auth_
middleware - Axum middleware that validates the
Authorization: Bearer <token>header. - 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.