Documentation
¶
Overview ¶
Package auth defines the authenticated identity carried by control-plane requests.
Package auth defines the authenticated identity carried by control-plane requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OIDCMiddleware ¶
OIDCMiddleware authenticates control-plane requests with an OIDC ID token (Authorization: Bearer <id_token>) issued by the configured issuer. The token's subject becomes the Principal subject; the tenant claim (default "tenant", configurable) becomes the tenant scope every store query is bounded by. This is the production identity path the tech baseline requires before any non-development deployment.
func StaticMiddleware ¶
StaticMiddleware is intentionally suitable only for a single-tenant local development server. Production deployments must replace it with verified workload or user identity middleware.