Skip to main content

Abstract Class: BaseOAuthJwksRouteMongo

Defined in: auth/src/routes/mongo/BaseOAuthJwksRouteMongo.ts:8

Serves this authorization server's public JSON Web Key Set (RFC 7517) at whatever path a subclass mounts it to (conventionally /.well-known/jwks.json or /jwks.json), so relying parties and resource servers can verify the tokens this server issues without any prior key exchange. Kept as its own route class separate from BaseOAuthDiscoveryRoute since a JWKS endpoint is typically polled far more often than discovery metadata and may warrant independent caching/CDN treatment.

Extends​

Constructors​

Constructor​

new BaseOAuthJwksRouteMongo(): BaseOAuthJwksRouteMongo

Returns​

BaseOAuthJwksRouteMongo

Inherited from​

BaseOAuthJwksRoute.constructor

Properties​

signingKeyClass​

protected signingKeyClass: any = SigningKeyMongo

Defined in: auth/src/routes/mongo/BaseOAuthJwksRouteMongo.ts:9

Overrides​

BaseOAuthJwksRoute.signingKeyClass


signingKeyRepo?​

protected optional signingKeyRepo?: RepoUtils<SigningKeyMongo>

Defined in: auth/src/routes/BaseOAuthJwksRoute.ts:30

Inherited from​

BaseOAuthJwksRoute.signingKeyRepo


signingKeyUtils?​

protected optional signingKeyUtils?: SigningKeyUtils

Defined in: auth/src/routes/BaseOAuthJwksRoute.ts:32

Inherited from​

BaseOAuthJwksRoute.signingKeyUtils

Methods​

jwks()​

jwks(res): Promise<{ keys: any[]; }>

Defined in: auth/src/routes/BaseOAuthJwksRoute.ts:74

Returns this authorization server's public JSON Web Key Set. Never includes private key material — see SigningKeyUtils.getPublicJwks().

Parameters​

res​

HttpResponse

Returns​

Promise<{ keys: any[]; }>

Inherited from​

BaseOAuthJwksRoute.jwks