middleware

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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