Lists all the public keys used by the custom authorization server
Success
Unauthorized
Forbidden
Not Found
Too Many Requests
[- {
- "status": "ACTIVE",
- "id": "apk40n33xfjbPaf6D0g5",
- "e": "AQAB",
- "n": "g0MirhrysJMPm_wK45jvMbbyanfhl-jmTBv0o69GeifPaISaXGv8LKn3-CyJvUJcjjeHE17KtumJWVxUDRzFqtIMZ1ctCZyIAuWO0n LKilg7_EIDXJrS8k14biqkPO1lXGFwtjo3zLHeFSLw6sWf-CEN9zv6Ff3IAXb-RMYpfh-bVrxIgWsWCxjLW-UKI3la-gs0nWHH2PJr5HLJuI JIOL5HLJuIJIOLWahqTnm_r1LSCSYr6N4C-fh--w2_BW8DzTHalBYe76bNr0d7AqtR4tGazmrvrc79Wa2bjyxmhhN1u9jSaZQqq-3VZEod8q3, WHH2PJ5v1LoXniJQ4a2W8nDVqb6h4E8MUKYOpljTfQ",
- "kid": "RQ8DuhdxCczyMvy7GNJb4Ka3lQ99vrSo3oFBUiZjzzc",
- "kty": "RSA",
- "use": "enc",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "GET"
]
}
}
}
}, - {
- "status": "INACTIVE",
- "id": "apk33a45xfjbDfg6D0g5",
- "e": "AQAB",
- "n": "l1hZ_g2sgBE3oHvu34T-5XP18FYJWgtul_nRNg-5xra5ySkaXEOJUDRERUG0HrR42uqf9jYrUTwg9fp-SqqNIdHRaN8EwRSDRsKAwK 3 HIJ2NJfgmrrO2ABkeyUq6rzHxAumiKv1iLFpSawSIiTEBJERtUCDcjbbqyHVFuivIFgH8L37 - XDIDb0XG - R8DOoOHLJPTpsgH - rJe M5w96VIRZInsGC5OGWkFdtgk6OkbvVd7_TXcxLCpWeg1vlbmX - 0 TmG5yjSj7ek05txcpxIqYu - 7 FIGT0KKvXge_BOSEUlJpBhLKU28 OtsOnmc3NLIGXB - GeDiUZiBYQdPR - myB4ZoQ",
- "kid": "Y3vBOdYT-l-I0j-gRQ26XjutSX00TeWiSguuDhW3ngo",
- "kty": "RSA",
- "use": "enc",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "GET"
]
}
}
}
}
]
Adds a new JSON Web Key to the custom authorization server`s JSON web keys.
Note: This API doesn't allow you to add a key if the existing key doesn't have a
kid
. Use the Replace an Authorization Server operation to update the JWKS or Delete a Custom Authorization Server Public JSON Web Key and re-add the key with akid
. Note: This API doesn't allow you to add a key with an ACTIVE status. You need to add an INACTIVE key first, and then ACTIVATE the key.
Created
Bad Request
Unauthorized
Forbidden
Too Many Requests
{- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "use": "enc",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "INACTIVE"
}
{- "id": "apk2f4zrZbs8nUa7p0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "enc",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "INACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "delete": {
- "hints": {
- "allow": [
- "DELETE"
]
}
}
}
}
Retrieves a custom authorization server public JSON web key by key id
OK
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "id": "apk2f4zrZbs8nUa7p0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "enc",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "INACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "delete": {
- "hints": {
- "allow": [
- "DELETE"
]
}
}
}
}
Deletes a custom authorization server public JSON web key by key id
. You can only delete an inactive key.
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000001",
- "errorSummary": "Api validation failed: JsonWebKey",
- "errorLink": "E0000001",
- "errorId": "sampleQPivGUj_ND5v78vbYWW",
- "errorCauses": [
- {
- "errorSummary": "''ACTIVE'' keys cannot be deleted. Activate another key before deleting this one."
}
]
}
Activates a custom authorization server public JSON web key by key id
.
Note: You can have only one active key at any given time for the authorization server. When you activate an inactive key, Okta automatically deactivates the current active key.
OK
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "id": "apk2f4zrZbs8nUa7p0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "enc",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "INACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "delete": {
- "hints": {
- "allow": [
- "DELETE"
]
}
}
}
}
Deactivates a custom authorization server public JSON web key by key id
.
Note: Deactivating the active key isn't allowed if the authorization server has access token encryption enabled. You can activate another key, which makes the current key inactive.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "id": "apk2f4zrZbs8nUa7p0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "enc",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "INACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "delete": {
- "hints": {
- "allow": [
- "DELETE"
]
}
}
}
}