Skip to content

Configure service clients

The Service client path is a three-step flow after the initial client-type selection. Use this path for:

  • Fraud Prevention clients that call risk-evaluation APIs and SDKs
  • Identity Verification clients that call APIs and SDKs
  • Machine-to-machine (M2M) clients for server-to-server integrations, such as a backend that calls Mosaic identity management or authentication APIs
  • Platform Administration clients that call Mosaic management APIs within their Mosaic application, for example to manage the Mosaic application and its clients

A service client operates within the scope of its Mosaic application. For administrative operations across Mosaic applications, use management apps.

Before you start

Create a Mosaic application for the client and identify the API permissions your integration needs.

In Applications > your app > Clients, click + Add client and select Service client. Complete the three steps below.

Step 1 - General

FieldDescription
Client nameClient name to display when needed.
Client descriptionShort description of your client.

Step 2 - Access Control

Roles define what this client can access. You can edit them later. This step is also where you assign the resources and scopes the client may request, and set how long its tokens last.

Based on the scope of your backend integration:

  • CIAM role: select it if your backend manages users, for example to create or update users, manage credentials, or revoke sessions or devices.
  • Authentication Only role: select it if your backend only logs users in, for example to send OTPs, verify passkeys or passwords, or exchange journey codes, without accessing or managing user data.
  • Fraud Prevention or Identity Verification only: you can continue without selecting a role. Mosaic assigns the App Admin role, and those calls keep working. If the same backend also manages or logs in users, select the matching role above.

You can also select a custom role with a specific set of permissions. For details on the built-in roles, see Built-in roles.

FieldDescription
Client rolesAssign one or more client roles to the client, including the built-in roles CIAM role and Authentication Only role. Clicking next without selecting a role automatically assigns the App Admin role to the client.
Client roles > + Add roleOpens the Add role flow:
  • Step 1 - Details: enter the required Role name and optional Description.
  • Step 2 - Setup: assign permissions from the permission tree under the Mosaic capability areas Identity management, Authentication, Platform Administration, and Fraud Prevention, each expanding into more granular categories.
For more details, see Manage client roles.
ResourcesList of URIs the client can explicitly request access to. This allows the client to manage dedicated access for a resource, including the token expiration. For example, a website can have a shorter lifetime for the page used to manage the user's payment methods. Before a resource can be added to a client, it must first be created in app > Access Control > Resources (see How authorization works).
ScopesCustom scopes assigned to this client. Mosaic includes a scope on the access token only when the client requests it and the scope is assigned here. A global scope can be assigned to any client. A resource-specific scope can be assigned only when its resource is also assigned to this client. Reserved scopes (openid, profile, email, address, phone, and offline_access) are always granted to every client. Before a scope can be assigned to a client, create it in app > Access Control > Scopes. See How authorization works.
Access token expirationThe access token time-to-live. By default, 60 minutes.
Refresh token expirationThe refresh token time-to-live. By default, 2 weeks.
Max refresh timeThe maximum period of time when the refresh token can be rotated. By default, 2 weeks.
Session expirationThe validity period during which you can silently authenticate the session. By default, 8760 hours (1 year).

Step 3 - Advanced settings

FieldDescription
Authentication methodEnforces client authentication using a specific method:
  • Client Secret: (default) Allows authenticating using Client ID and Client Secret. For security purposes, the secret can be rotated later without changing the client ID.
  • Private key JWT: Allows authenticating using client JWT assertion signed by your private key. If selected, provide JWKS.
  • mTLS (self-signed): Allows leveraging an mTLS handshake for authentication. If selected, provide the self-signed certificate in the JWKS format.
  • mTLS (CA-signed): Allows leveraging an mTLS handshake for authentication. If selected, provide the certificate chain in the PEM format. For requirements, see Authenticate using mutual TLS. Optionally, define Subject DN attributes (Common name (CN), Organization (O), and others) to enforce certificate validation against these values.
Enable token bindingEnabling this ensures that tokens are cryptographically bound to client certificate in the mTLS and private key JWT flows.
Token exchangeLets clients exchange user access tokens using OAuth 2.0 Token Exchange (RFC 8693). Both options are disabled by default. See Token exchange.
  • Initiate token exchange: Allows this client to call /oidc/token with the token exchange grant, as the exchanging client.
  • Delegate tokens issued by this client: Controls which clients may exchange user access tokens issued to this client, as the source client. When enabled, choose All clients within the Application (every client in the same Mosaic application, including dynamically registered clients) or Specific clients / DCR Authorities (manually registered clients you select, and optionally Client authorities, so that clients registered through them can exchange tokens).

Service clients don't require redirect URIs, SAML federation, supported prompt values, PKCE, or OIDC token-claim configuration.

After saving

Complete the wizard and save the client. Use its client ID and the configured authentication method to authorize your integration. See Retrieve client tokens.