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.
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.
| Field | Description |
|---|---|
| Client name | Client name to display when needed. |
| Client description | Short description of your client. |
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.
| Field | Description |
|---|---|
| Client roles | Assign 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 role | Opens the Add role flow:
|
| Resources | List 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). |
| Scopes | Custom 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 expiration | The access token time-to-live. By default, 60 minutes. |
| Refresh token expiration | The refresh token time-to-live. By default, 2 weeks. |
| Max refresh time | The maximum period of time when the refresh token can be rotated. By default, 2 weeks. |
| Session expiration | The validity period during which you can silently authenticate the session. By default, 8760 hours (1 year). |
| Field | Description |
|---|---|
| Authentication method | Enforces client authentication using a specific method:
|
| Enable token binding | Enabling this ensures that tokens are cryptographically bound to client certificate in the mTLS and private key JWT flows. |
| Token exchange | Lets clients exchange user access tokens using OAuth 2.0 Token Exchange (RFC 8693). Both options are disabled by default. See Token exchange.
|
Service clients don't require redirect URIs, SAML federation, supported prompt values, PKCE, or OIDC token-claim configuration.
Complete the wizard and save the client. Use its client ID and the configured authentication method to authorize your integration. See Retrieve client tokens.