middleware

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

func GetOrganizationFromRequest(r *http.Request) (string, bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL