Connectum API Reference / @connectum/auth / GatewayAuthInterceptorOptions
Interface: GatewayAuthInterceptorOptions ​
Defined in: packages/auth/src/types.ts:309
Gateway auth interceptor options.
For services behind an API gateway that has already performed authentication. Extracts auth context from gateway-injected headers.
Properties ​
defaultType? ​
readonlyoptionaldefaultType?:string
Defined in: packages/auth/src/types.ts:326
Default credential type when not provided by gateway
headerMapping ​
readonlyheaderMapping:GatewayHeaderMapping
Defined in: packages/auth/src/types.ts:311
Mapping from AuthContext fields to gateway header names
propagateHeaders? ​
readonlyoptionalpropagateHeaders?:boolean
Defined in: packages/auth/src/types.ts:324
Propagate auth context as headers for downstream services
skipMethods? ​
readonlyoptionalskipMethods?:string[]
Defined in: packages/auth/src/types.ts:322
Methods to skip authentication for
stripHeaders? ​
readonlyoptionalstripHeaders?:string[]
Defined in: packages/auth/src/types.ts:320
Headers to strip from the request after extraction (prevent spoofing)
trustSource ​
readonlytrustSource:object
Defined in: packages/auth/src/types.ts:313
Trust verification: check that request came from a trusted gateway
expectedValues ​
readonlyexpectedValues:string[]
Accepted values for the trust header
header ​
readonlyheader:string
Header set by the gateway to prove trust