Skip to main content

Module auth

Module auth 

Source
Expand description

Product auth/session behavior for Palette requests.

When the auth feature is enabled, this re-exports soma_auth::AuthContext (populated by soma-auth’s middleware, mounted by the composing app) and reads it the same way soma-api does. Without the feature, a minimal local stand-in keeps this crate buildable standalone (matching soma-api’s own pattern).

Structs§

AuthContext
Stored in request extensions by the HTTP auth middleware (see [crate::middleware::AuthLayer]).

Functions§

palette_execution_context
Build the [soma_application::ExecutionContext] for a Palette request, pulling subject/scopes from auth when present (unauthenticated requests under a loopback-dev or trusted-gateway policy pass None).