Skip to content

Retrieve the XAA resource server metadata

Request

OAuth 2.0 scope:
  • okta.apps.read
Admin roles:
  • SUPER_ADMIN
  • APP_ADMIN
  • API_ACCESS_MANAGEMENT_ADMIN
  • ORG_ADMIN
  • READ_ONLY_ADMIN
Permissions:
  • okta.apps.read

Retrieves the XAA resource server metadata for the specified app. The response includes the issuer that identifies the app's authorization server, the resources it protects, and the scopes it accepts.

An app returns the XAA resource server metadata only if it's created from an XAA-enabled resource integration in the Okta Integration Network (OIN) catalog. If you request the XAA metadata on an app that's not created from an XAA resource integration from the OIN, then a 404 Not Found error is returned.

Note: The issuer property on the OIN resource app integration can be an expression that supports Okta Expression Language's app properties. The XAA resource app instance returns the fully resolved issuer expression for its XAA metadata. If the issuer expression can't be resolved, then a 400 Bad Request error is returned.

Path
appIdstringrequired

Application ID

Example:0oafxqCAJWWGELFTYASJ
curl -i -X GET \
  https://subdomain.okta.com/api/v1/apps/0oafxqCAJWWGELFTYASJ/xaa/resource-server

Responses

Success

Bodyapplication/json
audTenantRequiredbooleanread-only

Indicates whether the ID-JAG audience for this resource server must carry a tenant claim. When true, a tenant value is collected from the customer when the app is configured and is included in the ID-JAG JWT audience. When absent, this property defaults to false, which is the case for single-tenant resource servers.

Example:true
cimdSupportedbooleanread-only

Indicates whether this resource server supports Client ID Metadata Documents (CIMD)

Example:true
issuerstring, (uri)read-only

The issuer URL that identifies the authorization server for the app (resource server).

The issuer property from the OIN catalog integration can be an expression that supports the Okta Expression Language's app properties, and contains the app properties that represent the customer tenant. For example, when the issuer on the OIN catalog integration is https://{app.subdomain}.example.com/, the app instance's issuer property is resolved to https://mydomain.example.com if the subdomain app property variable is set to mydomain. The fully resolved value is returned.

Example:"https://myapp.example.com"
protectedResourcesArray of strings, (uri), uniqueread-only

The resource URLs protected by this resource server

Example:
[ "https://api.myapp.example.com/v1/documents", "https://api.myapp.example.com/v1/messages" ]
scopesArray of strings, uniqueread-only

The OAuth 2.0 scopes that this resource server accepts

Example:
[ "documents.read", "messages.read" ]
Response
{ "audTenantRequired": true, "cimdSupported": true, "issuer": "https://myapp.example.com", "protectedResources": [ "https://api.myapp.example.com/v1/documents", "https://api.myapp.example.com/v1/messages" ], "scopes": [ "documents.read", "messages.read" ] }