Skip to main content

JWKS

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

A JSON Web Key Set (RFC 7517) is a JSON document containing the public keys that Choreo Identity & Access Management uses to sign JWTs, including ID tokens, access tokens, and other signed responses. Resource servers and clients fetch the document, find the key whose kid matches the JWT's kid header, and verify the signature locally.

How It Works​

curl https://<DATA_PLANE_URL>/oauth2/jwks
{
"keys": [
{
"kty": "RSA",
"use": "sig",
"kid": "identity-platform-2026-01",
"alg": "RS256",
"n": "0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWh...",
"e": "AQAB"
},
{
"kty": "EC",
"use": "sig",
"kid": "identity-platform-ec-2026-01",
"alg": "ES256",
"crv": "P-256",
"x": "WKn-ZIDIDvZRT5ZAakBPsCYR0V6cZF9NyfTQk6c2eXg",
"y": "y77t-RvAHRKTsSGdIYUfweuOvwrvDD-Q3Hi5rew0haE"
},
{
"kty": "AKP",
"use": "sig",
"kid": "identity-platform-mldsa-2026-01",
"alg": "ML-DSA-65",
"pub": "cG9zdC1xdWFudHVtLXB1YmxpYy1rZXktYnl0ZXM..."
}
]
}

The endpoint is public and idempotent: cache the response in line with your tolerance for key rotation.

How Choreo Identity & Access Management Implements It
AspectBehavior
EndpointGET /oauth2/jwks
Discovery fieldjwks_uri in Server Metadata
Supported key typesRSA, EC (P-256, P-384, P-521), OKP (Ed25519 / EdDSA), AKP (ML-DSA, RFC 9964)
Signing algorithms coveredRS256, RS512, PS256, ES256, ES384, ES512, EdDSA, ML-DSA-44, ML-DSA-65, ML-DSA-87
Private keysNever returned: the document contains only public material
Key rotationNew keys appear in the document before they're used for signing; old keys remain published while there are still valid tokens signed by them

Try It in Choreo Identity & Access Management​

The JWKS endpoint is always available. Nothing needs to be configured at the application level.

Consume JWKS from a Resource Server​

Most JWT libraries accept a jwks_uri and handle caching, key lookup by kid, and rotation automatically:

import { createRemoteJWKSet, jwtVerify } from 'jose';

const JWKS = createRemoteJWKSet(
new URL('https://<DATA_PLANE_URL>/oauth2/jwks')
);

const { payload } = await jwtVerify(token, JWKS, {
issuer: 'https://<DATA_PLANE_URL>',
audience: 'https://api.example.com/payments',
});

Caching Guidance​

  • Cache the JWKS response for minutes, not hours, long enough to avoid pressure on the endpoint, short enough to absorb a key rotation.
  • On signature failure with an unknown kid, refresh the cache once and retry. Do not loop.
  • Do not embed JWKS into your application. Fetch it at runtime so key rotation does not require a redeploy.

Was this page helpful?