Authorization Servers generate OAuth 2.0 and OpenID Connect tokens, including access tokens and ID tokens. The Okta Management API gives you the ability to configure and manage Authorization Servers and the security policies that are attached to them.
Work with the Default Authorization Server
Okta provides a pre-configured Custom Authorization Server with the name default
. This Default Authorization Server includes a basic access policy and rule, which you can edit to control access. It allows you to specify default
instead of the authorizationServerId
in requests to it:
https://${yourOktaDomain}/api/v1/authorizationServers/default
vs
https://${yourOktaDomain}/api/v1/authorizationServers/${authorizationServerId}
for other Custom Authorization Servers
okta.authorizationServers.read
Lists all custom authorization servers in the org
Success
Forbidden
Too Many Requests
[- {
- "id": "{authorizationServerId}",
- "name": "Sample Authorization Server",
- "description": "Sample Authorization Server description",
- "issuerMode": "ORG_URL",
- "status": "ACTIVE",
- "created": "2023-05-17T22:25:57.000Z",
- "lastUpdated": "2023-05-17T22:25:57.000Z",
- "credentials": {
- "signing": {
- "rotationMode": "AUTO",
- "lastRotated": "2023-05-17T22:25:57.000Z",
- "nextRotation": "2023-08-15T22:25:57.000Z",
- "kid": "WYQxoK4XAwGFn5Zw5AzLxFvqEKLP79BbsKmWeuc5TB4"
}
}, - "_links": {
- "scopes": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "claims": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "policies": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "self": {
- "hints": {
- "allow": [
- "GET",
- "DELETE",
- "PUT"
]
}
}, - "metadata": [
- {
- "name": "oauth-authorization-server",
- "hints": {
- "allow": [
- "GET"
]
}
}, - {
- "name": "openid-configuration",
- "hints": {
- "allow": [
- "GET"
]
}
}
], - "rotateKey": {
- "hints": {
- "allow": [
- "POST"
]
}
}, - "deactivate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}
]
okta.authorizationServers.manage
Creates an authorization server
Created
Bad Request
Forbidden
Too Many Requests
{- "name": "Sample Authorization Server",
- "description": "Sample Authorization Server description",
- "audiences": [
- "api://default"
]
}
{- "id": "{authorizationServerId}",
- "name": "Sample Authorization Server",
- "description": "Sample Authorization Server description",
- "issuerMode": "ORG_URL",
- "status": "ACTIVE",
- "created": "2023-05-17T22:25:57.000Z",
- "lastUpdated": "2023-05-17T22:25:57.000Z",
- "credentials": {
- "signing": {
- "rotationMode": "AUTO",
- "lastRotated": "2023-05-17T22:25:57.000Z",
- "nextRotation": "2023-08-15T22:25:57.000Z",
- "kid": "WYQxoK4XAwGFn5Zw5AzLxFvqEKLP79BbsKmWeuc5TB4"
}
}, - "_links": {
- "scopes": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "claims": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "policies": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "self": {
- "hints": {
- "allow": [
- "GET",
- "DELETE",
- "PUT"
]
}
}, - "metadata": [
- {
- "name": "oauth-authorization-server",
- "hints": {
- "allow": [
- "GET"
]
}
}, - {
- "name": "openid-configuration",
- "hints": {
- "allow": [
- "GET"
]
}
}
], - "rotateKey": {
- "hints": {
- "allow": [
- "POST"
]
}
}, - "deactivate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}
okta.authorizationServers.read
Retrieves an authorization server
Success
Forbidden
Not Found
Too Many Requests
{- "id": "{authorizationServerId}",
- "name": "Sample Authorization Server",
- "description": "Sample Authorization Server description",
- "issuerMode": "ORG_URL",
- "status": "ACTIVE",
- "created": "2023-05-17T22:25:57.000Z",
- "lastUpdated": "2023-05-17T22:25:57.000Z",
- "credentials": {
- "signing": {
- "rotationMode": "AUTO",
- "lastRotated": "2023-05-17T22:25:57.000Z",
- "nextRotation": "2023-08-15T22:25:57.000Z",
- "kid": "WYQxoK4XAwGFn5Zw5AzLxFvqEKLP79BbsKmWeuc5TB4"
}
}, - "_links": {
- "scopes": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "claims": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "policies": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "self": {
- "hints": {
- "allow": [
- "GET",
- "DELETE",
- "PUT"
]
}
}, - "metadata": [
- {
- "name": "oauth-authorization-server",
- "hints": {
- "allow": [
- "GET"
]
}
}, - {
- "name": "openid-configuration",
- "hints": {
- "allow": [
- "GET"
]
}
}
], - "rotateKey": {
- "hints": {
- "allow": [
- "POST"
]
}
}, - "deactivate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}
okta.authorizationServers.manage
Replaces an authorization server
Success
Bad Request
Forbidden
Not Found
Too Many Requests
{- "name": "New Authorization Server",
- "description": "Authorization Server description",
- "audiences": [
- "api://default"
], - "credentials": {
- "signing": {
- "rotationMode": "AUTO",
- "use": "sig"
}
}, - "issuerMode": "ORG_URL",
- "status": "ACTIVE"
}
{- "id": "{authorizationServerId}",
- "name": "Sample Authorization Server",
- "description": "Sample Authorization Server description",
- "issuerMode": "ORG_URL",
- "status": "ACTIVE",
- "created": "2023-05-17T22:25:57.000Z",
- "lastUpdated": "2023-05-17T22:25:57.000Z",
- "credentials": {
- "signing": {
- "rotationMode": "AUTO",
- "lastRotated": "2023-05-17T22:25:57.000Z",
- "nextRotation": "2023-08-15T22:25:57.000Z",
- "kid": "WYQxoK4XAwGFn5Zw5AzLxFvqEKLP79BbsKmWeuc5TB4"
}
}, - "_links": {
- "scopes": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "claims": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "policies": {
- "hints": {
- "allow": [
- "GET"
]
}
}, - "self": {
- "hints": {
- "allow": [
- "GET",
- "DELETE",
- "PUT"
]
}
}, - "metadata": [
- {
- "name": "oauth-authorization-server",
- "hints": {
- "allow": [
- "GET"
]
}
}, - {
- "name": "openid-configuration",
- "hints": {
- "allow": [
- "GET"
]
}
}
], - "rotateKey": {
- "hints": {
- "allow": [
- "POST"
]
}
}, - "deactivate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}
okta.authorizationServers.manage
Deletes an authorization server
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.authorizationServers.manage
Activates an authorization server
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.authorizationServers.manage
Deactivates an authorization server
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}