Connectum API Reference / @connectum/auth / SignedTokenIssuer
Interface: SignedTokenIssuer ​
Defined in: packages/auth/src/types.ts:539
Per-issuer JWKS configuration for signedTokenTrust.
The JWKS lookup is issuer-bound: the keyset is selected by the token's iss claim and verification is pinned to that same issuer. This is a hard security requirement — a single shared JWKS holding multiple services' keys does NOT contain compromise (jose resolves the key by kid independently of iss).
Properties ​
algorithms? ​
readonlyoptionalalgorithms?:string[]
Defined in: packages/auth/src/types.ts:545
Allowed signing algorithms.
Default ​
["RS256"]audience? ​
readonlyoptionalaudience?:string|string[]
Defined in: packages/auth/src/types.ts:543
Expected audience(s) for tokens from this issuer.
claimsMapping? ​
readonlyoptionalclaimsMapping?:object
Defined in: packages/auth/src/types.ts:562
Mapping from token claims to AuthContext fields (dot-notation paths).
Only a claim named here is read. subject is the verified iss unless claimsMapping.subject names another claim (then a missing or non-string value rejects the call); roles and scopes are empty unless mapped, and the standard scope claim grants nothing until claimsMapping.scopes points at it.
name? ​
readonlyoptionalname?:string
roles? ​
readonlyoptionalroles?:string
scopes? ​
readonlyoptionalscopes?:string
subject? ​
readonlyoptionalsubject?:string
jwksUri ​
readonlyjwksUri:string
Defined in: packages/auth/src/types.ts:541
The issuer's JWKS endpoint URL (its own keyset only).
maxTokenAge? ​
readonlyoptionalmaxTokenAge?:string|number
Defined in: packages/auth/src/types.ts:547
Maximum token age (seconds or string like "2h").
requireExpiration? ​
readonlyoptionalrequireExpiration?:boolean
Defined in: packages/auth/src/types.ts:553
Reject a token from this issuer that has no exp claim: a signed token without exp never expires. Set false only for an issuer that cannot add it.
Default ​
true