Get JWT keys
Retrieve JWKs for JWT verification, containing both static and dynamic keys.
GET
/appid-{appId}/recipe/jwt/jwksdeprecatedAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
ridstringcdi-versionstringX.Y of the X.Y.Z CDI version.
Responses
200Retrieve JWKs for JWT verification, containing both static and dynamic keys.
statusstringAllowed:
OKkeysjwk[]Show propertiesHide properties
Array of
jwkalgcreateJWTAlgorithmThe algorithm to use when creating the JWT.
Allowed:
RS256ktystringusestringkidstringUnique identifier for the JWK
x5cstring[]X.509 Certificate Chain
400error code 400
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Request
curl -X GET "/appid-{appId}/recipe/jwt/jwks" \
-H "api-key: YOUR_API_KEY"const response = await fetch("/appid-{appId}/recipe/jwt/jwks", {
method: "GET",
headers: {
"api-key": "YOUR_API_KEY"
}
});import requests
response = requests.get(
"/appid-{appId}/recipe/jwt/jwks",
headers={
"api-key": "YOUR_API_KEY"
},
)Response
{
"status": "OK",
"keys": [
{
"alg": "RS256",
"kty": "RSA",
"use": "sig",
"kid": "string",
"x5c": [
"string"
]
}
]
}"string""Not Found""Internal Error"