Skip to main content

Service Discovery

Zanthem Identity Services provides an OpenID Connect discovery endpoint for each provisioned authentication realm.

The discovery endpoint allows applications to automatically retrieve authentication endpoints, supported protocols, signing algorithms, and other service configuration.

Base URL​

All authentication requests are associated with your assigned realm.

https://auth.zanthem.cloud/realms/{realm}

Replace {realm} with the realm identifier provided by your Zanthem account manager.

Discovery Endpoint​

GET

https://auth.zanthem.cloud/realms/{realm}/.well-known/openid-configuration

Authentication​

No authentication is required to access the discovery endpoint.

Example Request​

curl "https://auth.zanthem.cloud/realms/example-company/.well-known/openid-configuration"

Example Response​

The following is an abbreviated example discovery response.

{
"issuer": "https://auth.zanthem.cloud/realms/example-company",
"authorization_endpoint": "https://auth.zanthem.cloud/realms/example-company/protocol/openid-connect/auth",
"token_endpoint": "https://auth.zanthem.cloud/realms/example-company/protocol/openid-connect/token",
"userinfo_endpoint": "https://auth.zanthem.cloud/realms/example-company/protocol/openid-connect/userinfo",
"jwks_uri": "https://auth.zanthem.cloud/realms/example-company/protocol/openid-connect/certs",
"end_session_endpoint": "https://auth.zanthem.cloud/realms/example-company/protocol/openid-connect/logout",
"revocation_endpoint": "https://auth.zanthem.cloud/realms/example-company/protocol/openid-connect/revoke",
"introspection_endpoint": "https://auth.zanthem.cloud/realms/example-company/protocol/openid-connect/token/introspect"
}

Actual responses contain additional metadata and may vary according to the configuration of your assigned realm.

Available Endpoints​

All paths below are relative to your realm issuer URL.

EndpointMethodPurpose
/.well-known/openid-configurationGETService discovery
/protocol/openid-connect/authGETUser authorization
/protocol/openid-connect/tokenPOSTToken issuance and refresh
/protocol/openid-connect/userinfoGET, POSTAuthenticated user information
/protocol/openid-connect/certsGETPublic signing keys
/protocol/openid-connect/logoutGET, POSTSession termination
/protocol/openid-connect/revokePOSTToken revocation
/protocol/openid-connect/token/introspectPOSTToken introspection

Public Signing Keys​

Applications can retrieve the public signing keys associated with their assigned realm through the JSON Web Key Set (JWKS) endpoint.

GET

https://auth.zanthem.cloud/realms/{realm}/protocol/openid-connect/certs

Example Request​

curl "https://auth.zanthem.cloud/realms/example-company/protocol/openid-connect/certs"

Applications should use these keys to verify the signatures of signed tokens issued by Zanthem Identity Services.

Signing keys may change during routine key rotation.

Applications should support refreshing cached signing keys when an unfamiliar key identifier (kid) is encountered.

Application Configuration​

Where supported by your authentication library, configure the issuer URL rather than manually configuring each endpoint.

AUTH_ISSUER=https://auth.zanthem.cloud/realms/example-company
AUTH_CLIENT_ID=example-app

Your authentication library can use the issuer URL to retrieve the discovery document and determine the appropriate endpoints.

Configuration Requirements​

Before integrating an application, confirm that you have received the following information:

  • Assigned realm identifier
  • Application client identifier
  • Client authentication method
  • Approved redirect URIs
  • Approved authentication flows
  • Required application scopes

:::info Service capabilities

The discovery document describes capabilities advertised by your assigned realm. Individual application clients may be restricted to a subset of those capabilities.

Contact your account manager if additional capabilities are required.

:::