Connectum API Reference / @connectum/auth / AUTH_HEADERS
Variable: AUTH_HEADERS
constAUTH_HEADERS:object
Defined in: packages/auth/src/types.ts:49
Standard header names for auth context propagation.
Used for cross-service context propagation (similar to Envoy credential injection). The auth interceptor sets these headers when propagateHeaders is true.
WARNING: These headers are trusted ONLY in service-to-service communication where transport security (mTLS) is established. Never trust these headers from external clients without using createGatewayAuthInterceptor().
Type Declaration
CLAIMS
readonlyCLAIMS:"x-auth-claims"="x-auth-claims"
JSON-encoded claims object
NAME
readonlyNAME:"x-auth-name"="x-auth-name"
Human-readable display name
ROLES
readonlyROLES:"x-auth-roles"="x-auth-roles"
JSON-encoded roles array
SCOPES
readonlySCOPES:"x-auth-scopes"="x-auth-scopes"
Space-separated scopes
SUBJECT
readonlySUBJECT:"x-auth-subject"="x-auth-subject"
Authenticated subject identifier
TYPE
readonlyTYPE:"x-auth-type"="x-auth-type"
Credential type (jwt, api-key, mtls, etc.)
