Expand description
HTTP server application state and auth policy.
AppState is injected into every request handler via axum’s State extractor.
AuthPolicy determines which auth middleware (if any) is mounted on the router.
Structs§
- AppState
- Shared transport state injected into every request handler.
- Response
Page Store - Soma
Runtime - Shared application state injected into every request handler.
Enums§
- Auth
Policy - Authentication policy attached to
AppState. - Auth
Policy Kind
Functions§
- build_
auth_ layer - Build a [
soma_auth::AuthLayer] from anAuthPolicy, orNonewhen the trust boundary is outside the mounted HTTP auth layer. - empty_
gateway_ product_ state - gateway_
product_ state_ from_ config - gateway_
product_ state_ from_ env - gateway_
product_ state_ from_ store - resolve_
auth_ policy_ kind - trusted_
gateway_ from_ env - Read SOMA_NOAUTH from the environment directly.