Documentation
¶
Overview ¶
Package middleware is the public tier of the platform's request-context helpers. It mirrors the internal/middleware package structure, re-exporting only the accessors that are part of the public contract so external plugins read auth-chain values through a stable surface, never the internal package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrganizationFromRequest ¶
GetOrganizationFromRequest returns the authenticated organization UUID resolved by the platform auth chain from the request context, and whether it was present.
Plugin handlers MUST scope tenant data by this value, never by an organization id taken from request path, query, or body (GO-AUTH-005). It is populated for every route that is not an auth skip-path.
It wraps the internal context accessor so the context key stays a single source of truth; external plugins reach it only through this public helper.
Types ¶
This section is empty.