Skip to main content

Application Client Configuration

Applications integrating with Zanthem Identity Services must be registered within an assigned authentication realm.

A registered application is referred to as an application client.

Application client provisioning and configuration are performed by authorized Zanthem personnel.

Client Identifier​

Each registered application receives a client identifier, commonly referred to as a client ID.

For example:

example-app

The client identifier is used when initiating authentication and performing other supported authentication operations.

A client identifier is not a confidential credential.

Application Types​

The application type determines the appropriate client configuration and authentication method.

Application TypeTypical Client Configuration
Browser-based applicationPublic client using Authorization Code with PKCE.
Server-side web applicationConfidential client using Authorization Code with PKCE.
Mobile applicationPublic client using Authorization Code with PKCE.
Desktop applicationPublic client using Authorization Code with PKCE.
Backend serviceConfidential client where client authentication is required.
Machine-to-machine integrationConfidential service client using Client Credentials.

The final client configuration must be established according to the application architecture.

Public Clients​

Public clients are applications that cannot securely retain confidential credentials.

Examples include:

  • Browser-based single-page applications
  • Mobile applications
  • Distributed desktop applications

Public clients do not rely on client secrets to authenticate themselves.

Example Configuration​

AUTH_ISSUER=https://auth.zanthem.cloud/realms/example-company
AUTH_CLIENT_ID=example-frontend
AUTH_REDIRECT_URI=https://app.example.com/callback
AUTH_SCOPE=openid profile email

Public clients should use Authorization Code with PKCE using the S256 challenge method.

:::warning Public client credentials

A client secret embedded in a frontend, mobile, or desktop application cannot be considered confidential.

Do not request or embed confidential client credentials in publicly distributed applications.

:::

Confidential Clients​

Confidential clients operate within environments capable of securely retaining application credentials.

Examples include:

  • Server-rendered web applications
  • Backend authentication services
  • Backend-for-frontend applications
  • Trusted server-side integrations

Confidential clients authenticate using an approved client authentication method.

Example Configuration​

AUTH_ISSUER=https://auth.zanthem.cloud/realms/example-company
AUTH_CLIENT_ID=example-backend
AUTH_CLIENT_SECRET=REPLACE_WITH_ASSIGNED_SECRET
AUTH_REDIRECT_URI=https://app.example.com/callback

The example variable names are illustrative.

Actual client credentials are delivered through an approved secure communication method.

Client secrets must remain on trusted servers.

Service Clients​

Service clients may be provisioned for approved machine-to-machine authentication requirements.

Service clients can obtain access tokens without an interactive user authentication session where the Client Credentials flow is enabled.

Example Configuration​

AUTH_ISSUER=https://auth.zanthem.cloud/realms/example-company
AUTH_CLIENT_ID=example-service
AUTH_CLIENT_SECRET=REPLACE_WITH_ASSIGNED_SECRET

Service clients represent applications or services rather than authenticated human users.

Service credentials must be restricted to the permissions necessary for their intended function.

A service client must not be treated as an unrestricted identity administration account.

See the Token Endpoint for Client Credentials request examples.

Registering an Application​

Provide your account manager with the following information when requesting a new application client.

ConfigurationExample
Application nameExample Customer Portal
Application typeBrowser-based application
Authentication protocolOpenID Connect
Application frameworkReact
EnvironmentProduction
Application URLhttps://app.example.com
Redirect URIhttps://app.example.com/callback
Logout redirect URIhttps://app.example.com/
Web originhttps://app.example.com
Requested scopesopenid profile email
Required authentication flowsAuthorization Code with PKCE

Additional information may be required for specialized application configurations.

Zanthem will provision the client and provide the approved integration configuration.

Redirect URIs​

Redirect URIs identify application endpoints that receive authentication responses.

Example​

https://app.example.com/callback

Redirect URIs must be approved and registered before they can be used.

The application must supply a redirect URI compatible with its assigned client configuration.

Production web applications should use HTTPS and explicitly registered callback addresses.

The following are distinct redirect URIs:

https://app.example.com/callback
https://app.example.com/callback/
https://portal.example.com/callback

Differences in hostname, path, protocol, port, or trailing slash may cause an authentication request to be rejected.

Unrestricted wildcard redirect URIs should not be used for production applications.

Development Redirect URIs​

Development applications may require local callback addresses.

For example:

http://localhost:5173/callback

Local development redirect URIs must be explicitly approved and registered.

Native desktop applications may use approved loopback redirect mechanisms where appropriate.

Development redirect URIs should not be unnecessarily included in production clients.

Post-Logout Redirect URIs​

Post-logout redirect URIs determine where users may be redirected following centralized authentication logout.

Example​

https://app.example.com/

Logout redirect configuration is separate from authentication callback configuration.

Contact your account manager to add or modify approved logout destinations.

See Token & Session Management for logout request specifications.

Web Origins​

Browser-based applications may require approved web origins to perform cross-origin requests to supported authentication endpoints.

A web origin consists of:

  • URL scheme
  • Hostname
  • Port, where applicable

Example​

https://app.example.com

An origin does not include a URL path.

Incorrect:

https://app.example.com/callback

Correct:

https://app.example.com

Web origins and redirect URIs serve different purposes and must be configured appropriately.

Applications should not use unrestricted cross-origin permissions in production.

Authentication Scopes​

Scopes identify the identity information or access capabilities requested by an application.

Common OpenID Connect scopes include:

ScopePurpose
openidEnables OpenID Connect authentication.
profileRequests standard user profile claims.
emailRequests email-related claims.
phoneRequests phone-related claims where configured.
offline_accessRequests offline access where approved.

Additional application-specific scopes may be configured according to integration requirements.

Applications must only request approved scopes.

Token Audiences​

An access token must be intended for the resource server receiving it.

The token audience identifies the intended recipient or recipients of the token.

Applications exposing protected APIs should communicate their audience requirements during client provisioning.

Resource servers must validate that the token contains the expected audience.

Do not accept a token solely because it was issued by a trusted authentication realm.

An ID token's audience identifies the application client for which the identity token was issued.

Application-Level Permissions​

Authentication clients define how applications integrate with Zanthem Identity Services.

They do not automatically establish all application-level access permissions.

Applications remain responsible for enforcing:

  • User roles
  • Resource permissions
  • Tenant restrictions
  • Organization membership
  • Administrative privileges
  • Business-specific access rules

Custom roles and token claims may be configured where required.

Multiple Application Clients​

Organizations may require separate clients for different applications or environments.

For example:

example-company
├── example-web
├── example-mobile
├── example-api
└── example-integration-service

Separate clients allow authentication configuration and credentials to be managed according to each application's specific requirements.

Do not share confidential client credentials between unrelated applications.

Credential Rotation​

Contact your account manager when confidential client credentials require rotation.

The rotation process may require:

  1. Coordinating the credential change.
  2. Receiving replacement credentials.
  3. Updating the trusted application environment.
  4. Restarting or redeploying affected applications.
  5. Validating authentication functionality.
  6. Retiring previous credentials.

Credential overlap and rotation behavior depend on the assigned client configuration.

Do not assume that previous credentials remain valid after rotation.

Requesting Client Configuration Changes​

Contact your account manager for:

  • Additional application clients
  • Client authentication method changes
  • Redirect URI modifications
  • Logout redirect URI modifications
  • Web origin changes
  • Authentication flow changes
  • Additional scopes
  • Audience configuration
  • Custom token claims
  • Credential rotation
  • Client deactivation