Skip to content

List all authorization servers

Request

OAuth 2.0 scope:
  • okta.authorizationServers.read

Lists all custom authorization servers in the org

Query
qstring

Searches the name and audiences of authorization servers for matching values

Example:q=customasone
limitinteger, (int32)

Specifies the number of authorization server results on a page. Maximum value: 200

Default:200
afterstring

Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship.

curl -i -X GET \
  'https://subdomain.okta.com/api/v1/authorizationServers?q=customasone&limit=200&after=string'

Responses

Success

Bodyapplication/json
Array [
accessTokenEncryptedResponseAlgorithmstring(AccessTokenKeyEncryptionAlgorithm)

The algorithm for encrypting access tokens issued by this authorization server. If this is requested, the response is signed, and then encrypted. The result is a nested JWT. The default, if omitted, is that no encryption is performed.

Enum:"RSA-OAEP-256""RSA-OAEP-384""RSA-OAEP-512"
audiencesArray of strings, <= 100 items

The recipients that the tokens are intended for. Each value is a valid aud claim for access tokens, but each access token is issued for a single audience. Use the resource parameter in a token or authorization request to select the audience that the token's aud claim is set to. If the token request doesn't specify a resource, the aud claim is the resource from the original authorization request, or the defaultAudience if that request didn't specify one. A maximum of 100 audience URLs are supported.

Note: Multiple audiences for custom authorization servers is a self-service Early Access (EA) feature. See Manage Early Access and Beta features to enable the feature.

createdstring, (date-time)read-only
credentialsobject(AuthorizationServerCredentials)
defaultAudiencestring

The default audience URL that's used as the aud claim in access tokens when the request doesn't specify a resource parameter and there is no resource from an earlier authorization request. It must be one of the values in the audiences array.

Note: Multiple audiences for custom authorization servers is a self-service Early Access (EA) feature. See Manage Early Access and Beta features to enable the feature.

descriptionstring

The description of the custom authorization server

idstringread-only

The ID of the custom authorization server

issuerstring

The complete URL for the custom authorization server. This becomes the iss claim in an access token.

issuerModestring

Indicates which value is specified in the issuer of the tokens that a custom authorization server returns: the Okta org domain URL or a custom domain URL.

issuerMode is visible if you have a custom URL domain configured or the Dynamic Issuer Mode feature enabled. If you have a custom URL domain configured, you can set a custom domain URL in a custom authorization server, and this property is returned in the appropriate responses.

When set to ORG_URL, then in responses, issuer is the Okta org domain URL: https://${yourOktaDomain}.

When set to CUSTOM_URL, then in responses, issuer is the custom domain URL configured in the administration user interface.

When set to DYNAMIC, then in responses, issuer is the custom domain URL if the OAuth 2.0 request was sent to the custom domain, or is the Okta org's domain URL if the OAuth 2.0 request was sent to the original Okta org domain.

After you configure a custom URL domain, all new custom authorization servers use CUSTOM_URL by default. If the Dynamic Issuer Mode feature is enabled, then all new custom authorization servers use DYNAMIC by default. All existing custom authorization servers continue to use the original value until they're changed using the Admin Console or the API. This way, existing integrations with the client and resource server continue to work after the feature is enabled.

jwksobject(ResourceServerJsonWebKeys)

A JSON Web Key Set for encrypting JWTs minted by the custom authorization server

jwks_uristring

URL string that references a JSON Web Key Set for encrypting JWTs minted by the custom authorization server

lastUpdatedstring, (date-time)read-only
namestring

The name of the custom authorization server

statusstring(LifecycleStatus)
Enum:"ACTIVE""INACTIVE"
]
Response
[ { "id": "{authorizationServerId}", "name": "Sample Authorization Server", "description": "Sample Authorization Server description", "audiences": [ … ], "issuer": "https://{yourOktaDomain}/oauth2/{authorizationServerId}", "issuerMode": "ORG_URL", "status": "ACTIVE", "created": "2023-05-17T22:25:57.000Z", "lastUpdated": "2023-05-17T22:25:57.000Z", "credentials": { … }, "_links": { … } } ]