Use this guide to create an OIDC user authentication client for a web or native app. For backend-based authentication through Mosaic APIs or SDKs without an OIDC/SAML login flow, see Backend-based authentication.
- Create a Mosaic application for the client.
- For OIDC login, prepare the redirect URIs that receive the authorization response.
- Choose your login experience. For journey-orchestrated login, prepare an SSO journey and an SSO client group, or create the group inline.
In Applications > your app > Clients, click + Add client and select User authentication client. Follow the steps below for protocol-based OIDC authentication.
| Field | Description |
|---|---|
| Client name | Client name to display when needed. |
| Client description | Short description of your client. |
| Field | Description |
|---|---|
| Does your login use OIDC or SAML authentication? | Enabled by default. Leave it enabled for protocol-based authentication, then select OIDC or SAML. Disable it for backend-based authentication through Mosaic APIs or SDKs. |
| Protocol | Setting to OIDC defines that this client is OIDC-based. |
| Client type | Whether the client is a web app (default) or a native app (e.g., mobile). This is used to adapt validations and configuration according to client type when relevant (such as validations for redirect URIs). |
| Redirect URIs | List of URIs approved for redirects for your customer-facing application (e.g., URI to redirect to when an authentication is completed). The required format of the redirect URI depends upon client type: web clients must use HTTPS unless using a local environment, while native apps must use HTTPS unless using a local environment or custom scheme. Custom schemes are only allowed in the format of reverse domain schemes ([domain]://[scheme]). |
Choose Journey-orchestrated or Application-controlled. For the journey-orchestrated path, select the required SSO client group and Journey. When the group uses Mosaic-hosted screens, select a Style or use the default Mosaic style. The journey and style are configured per client. See Choose your login experience.
For the path that skips this step, see Backend-based authentication.
| Field | Description |
|---|---|
| Enforce FAPI 2.0 compliance | For highly-regulated industries, consider enabling "Enforce FAPI 2.0 compliance". This will automatically disable client settings that aren't FAPI 2.0-compliant and prompt you to configure your client in accordance with FAPI principles, for example by enforcing mTLS, PKCE, and PAR. See FAPI 2.0. |
| 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. |
| Enforce PAR | Enforces the usage of the PAR endpoint for auth requests. For implementation details, see Integrate login using PAR. |
| PKCE support | Whether the client requires the proof key of code exchange (PKCE) for authentication. For implementation details, see Secure login with PKCE.
|
| 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). This session is tied to the tokens issued to this client: it limits how long the client can renew tokens without a new login. It's separate from the session timeout of an SSO client group, which controls when users must sign in again across the group's clients. |
| Same Site | Defines the client cookie policy for requests made from a different site (cross-site).
|
| Supported prompt values | List of OIDC prompt values to be enforced by the OIDC authorization server. Note that only selected prompt values can be included in the authorization requests, requests containing unselected prompt values will be rejected.
|
| 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 from the Resources tab of the Applications page (see Resources). |
| ID token — Pre-defined custom claims | Dropdown for selecting the claim values that Mosaic should return by default in the user's ID token. These claims do not need to be explicitly requested in the OIDC authorization request. Pre-defined ID token custom claim list is available below this table. |
| Return ID token claims on UserInfo as well | Checkbox that makes the UserInfo endpoint return the same default claims selected in ID Token - Pre-defined Custom Claims. When selected, User info - Pre-defined Custom Claims is disabled because UserInfo uses the ID token claim selection. |
| User info — Pre-defined custom claims | Dropdown for selecting the claim values that Mosaic should return by default from the UserInfo endpoint. These claims do not need to be explicitly requested during the OIDC flow. Pre-defined UserInfo custom claim list is available below this table. |
| ID token encryption | Allows encrypting ID tokens using the customer-provided key. Upload a JWKS containing an RSA public key (RSA-OAEP) and rotate it as necessary. Encrypted tokens will be returned in a JWE form. |
| Token exchange | Lets clients exchange user access tokens using OAuth 2.0 Token Exchange (RFC 8693). Both options are disabled by default.
|
Click to open the list
tid: ID of the Mosaic tenantfname: User's first namelname: User's last namemname: User's middle nameemail: User's primary emailemail_verified: Indicates if the user's primary email is verifiedphone_number: User's primary phone numberphone_number_verified: Indicates if the user's primary phone number is verifiedgroups: Groups to which the user belongsnew_user: Indicates if a new user was created as part of the authentication flowbirthday: User's birthday as YYYY-MM-DDlanguage: The language of the usercity: User's city of residenceaddress: User's addresscountry: User's country of residencestreet_address: User's street addressaddress_type: Type of user's addresswebauthn: Returned only if WebAuthn was usedroles: List of role IDs assigned to the userts_roles: Transmit Security platform roles assigned to the user through Transmit Security RBAC. These are distinct from the Mosaic application-level roles in therolesclaimrole_values: Main and custom roles assigned to the userts_permissions: Transmit Security platform permissions assigned to the user through Transmit Security RBAC. These are distinct from the Mosaic application-level permissions in thepermissionsclaimpermissions: List of permissions delegated to the userapproval_data: Returned only in transaction signing flows. Contains approval-related transaction datacustom_group_data: Custom data object for group infousername: Username used to identify the user for password loginsecondary_phone_numbers: List of user's secondary phone numberssecondary_emails: List of user's secondary emailspicture: The picture of user, specified as a URLcreated_at: Date user was created in the tenantlast_auth: Date user last authenticatedauth_time: Time the user was authenticatedexternal_account_id: User identifier in an app, set by the appexternal_user_id: A unique identifier in a tenantapp_name: Name of the app the user is associated withcustom_data: Custom data object for tenant user infocustom_app_data: Custom data object for app-related user info
Click here to open the list
tid: ID of the Mosaic tenantfname: User's first namelname: User's last namemname: User's middle nameemail: User's primary emailemail_verified: Indicates if the user's primary email is verifiedphone_number: User's primary phone numberphone_number_verified: Indicates if the user's primary phone number is verifiedgroups: Groups to which the user belongsnew_user: Indicates if a new user was created as part of the authentication flowbirthday: User's birthday as YYYY-MM-DDlanguage: The language of the usercity: User's city of residenceaddress: User's addresscountry: User's country of residencestreet_address: User's street addressaddress_type: Type of user's addresswebauthn: Returned only if WebAuthn was usedroles: List of role IDs assigned to the userts_roles: Transmit Security platform roles assigned to the user through Transmit Security RBAC. These are distinct from the Mosaic application-level roles in therolesclaimrole_values: Main and custom roles assigned to the userts_permissions: Transmit Security platform permissions assigned to the user through Transmit Security RBAC. These are distinct from the Mosaic application-level permissions in thepermissionsclaimpermissions: List of permissions delegated to the userapproval_data: Returned only in transaction signing flows. Contains approval-related transaction datacustom_group_data: Custom data object for group infousername: Username used to identify the user for password loginsecondary_phone_numbers: List of user's secondary phone numberssecondary_emails: List of user's secondary emailspicture: The picture of user, specified as a URLcreated_at: Date user was created in the tenantlast_auth: Date user last authenticatedauth_time: Time the user was authenticatedexternal_account_id: User identifier in an app, set by the appexternal_user_id: A unique identifier in a tenantapp_name: Name of the app the user is associated withcustom_data: Custom data object for tenant user infocustom_app_data: Custom data object for app-related user info
Claims such as org_id do not appear in these dropdowns. When authentication runs in the context of an organization, Mosaic adds org_id automatically to the ID token and UserInfo response.
To add custom key/value claims in journey flows, configure Enrich Access and ID Token or Enrich SSO Token in your journey.
The last step lets you assign one or more client roles to the client.
| Field | Description |
|---|---|
| Client roles | Assign one or more client roles to the client. If you don't select a role, the client implicitly receives the App Admin role. Exception: clients that were configured in the Admin Portal's SSO & Federation section, now deprecated, have no roles when none is assigned and can only perform authentication. To grant more permissions, assign client roles explicitly. |
| Client roles > + Add role | Opens the Add role flow:
|
Complete the wizard and save the client. The client details page contains its credentials and configuration.
Upon OIDC client creation, Mosaic will autogenerate a unique Client ID and Client Secret.
- Client ID: Client identifier for API requests, automatically generated when the client is created. It cannot be edited.
- Client Secret: Client secret used to authorize API requests on behalf of the client (either directly or by using it to generate client access tokens). It is automatically generated when the client is created, and you can rotate it later without changing the Client ID. During rotation, Mosaic can keep up to two active secrets so you can update your backend before revoking the old one.
For user authentication through Mosaic APIs or SDKs without an OIDC or SAML login flow, select User authentication client, then turn off Does your login use OIDC or SAML authentication? in Authentication flow. The saved client is still an OIDC client.
This path uses General, Authentication flow, Advanced settings (step 3), and Client roles (step 4). It skips Login Experience. Configure the authentication method and token settings shown for this path, then assign the required client roles (see Step 5 - Client roles; on this path it's step 4). Enforce PAR is not available on this path; the protocol-based settings above do not all apply.
Follow the setup requirements in the guide for the authentication method you integrate. See Backend authentication.