/api/jwks/{audience}AuthenticatedLoad an API server's JWKS
Returns the JSON Web Key Set the auth server signs and encrypts tokens for the given API server (audience) with, creating the keyset on first use. The set includes the private JWE decryption key, so only that API server may fetch it: it presents a single-use JWKS access assertion signed with its JWKS access private key (see POST /api/apis/{api_server_id}/jwks-access-key); resource servers built on @schemavaults/auth-server-sdk do this through RemoteJwtKeyManager. The auth server's own keys and the reserved oidc-userinfo keys are never exported here; the public verification keys are served unauthenticated at GET /api/oidc/jwks.
get_api_jwks_audienceResource serversAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- JWKS access assertion (Bearer)
Authorization: Bearer <JWT>
- JWKS access assertion (Bearer)
- Who may call
- Any authenticated user
- Notes
- The assertion's
iss/submust equal theaudiencepath parameter, so an API server can only load its own JWKS. Every assertion is accepted once.
Path parameters
| Name | Type | Description |
|---|---|---|
| audience* | string | API server id whose JWKS to load; must equal the assertion's issuer |
Responses
| Property | Type | Description |
|---|---|---|
| keys* | JsonWebKey[] | |
| kty | string | Key type |
| kid | string | Key id, matched against the token header |
| alg | string | Algorithm the key is meant for |
| use | string |
|
Example request
curl -X GET 'https://auth.schemavaults.com/api/jwks/<audience>' \
-H 'Authorization: Bearer <access_token>'