Skip to main content

Module auth

Module auth 

Source

Structs§

AuthState
Shared state for the authentication middleware.
GatewayRoutePolicy
Gateway-specific route policy implementation
PublicRouteMatcher
Public route matcher for explicitly public routes
RouteMatcher
Route matcher for a specific HTTP method (authenticated routes).

Enums§

AuthRequirement
Whether a route requires authentication.

Functions§

authn_middleware
Authentication middleware that uses the AuthN Resolver to validate bearer tokens.
build_route_policy
Helper to build GatewayRoutePolicy from operation requirements.