Connectum API Reference / @connectum/auth / GatewayHeaderMapping
Interface: GatewayHeaderMapping ​
Defined in: packages/auth/src/types.ts:380
Header name mapping for gateway auth context extraction.
Maps AuthContext fields to custom header names used by the API gateway.
Properties ​
claims? ​
readonlyoptionalclaims?:string
Defined in: packages/auth/src/types.ts:396
Header containing JSON-encoded claims
name? ​
readonlyoptionalname?:string
Defined in: packages/auth/src/types.ts:384
Header containing the display name
roles? ​
readonlyoptionalroles?:string
Defined in: packages/auth/src/types.ts:390
Header containing the roles: a JSON array of strings (["admin","editor"]) or a comma-separated list (admin, editor). Any value that is not a JSON array, including JSON of another kind such as 123 or true, is read as a comma-separated list.
scopes? ​
readonlyoptionalscopes?:string
Defined in: packages/auth/src/types.ts:392
Header containing space-separated scopes
subject ​
readonlysubject:string
Defined in: packages/auth/src/types.ts:382
Header containing the authenticated subject
type? ​
readonlyoptionaltype?:string
Defined in: packages/auth/src/types.ts:394
Header containing credential type