This guide walks you through the process of migrating users from your existing identity provider to Mosaic using Just-In-Time (JIT) migration.
When a user requests to log in, the client invokes a journey that collects user input (for example, user credentials for password authentication or email address for OTP).Then Mosaic uses this input to authenticate the user in the external IDP. If authentication succeeds, Mosaic creates a user record and signals to the client that the user has logged in.
If this is your first time integrating with Mosaic, create an application in the Admin Portal as described here.
Once you decided on the authentication method, configure your existing IDP:
- For password or OTP authentication: Enable API access or ROPC (Resource Owner Password Credentials) flow in your IDP settings. Generate API credentials or keys that Mosaic will use to validate user credentials.
- For OIDC redirect: Register Mosaic as an OAuth/OIDC client in your source IDP. Configure redirect URIs pointing to Mosaic.
- For SAML redirect: Register Mosaic as a Service Provider (SP) in your source IDP. Configure the assertion consumer service URL.
Configure your existing identity provider in Mosaic's Integration Hub. This establishes connectivity using standard protocols and prepares your IDP for user validation during migration.
- Navigate to Admin Portal > Integration Hub > External IDP.
- Select your identity provider from the available connectors.
- Enable the authentication methods.
- Configure the connector settings (client credentials, endpoints, etc., obtained in Step 1)–these vary per IDP and authentication method.
- Enable the connector.
For more see, Connect external IDP.
Before migrating users, ensure Mosaic can store the user data from your existing IDP:
- Explore the user schema in your existing IDP to identify the attributes and identifiers you need to migrate.
- Review the default Mosaic user schema to understand which attributes are supported out of the box.
- If your IDP uses custom attributes or identifiers not available in Mosaic by default, customize the user schema to add them.
Use journeys to create authentication flows that validate users against your existing IDP (Admin Portal > B2C Identity or B2B Identity > Journeys). Migration-specific journey steps handle credential validation and user provisioning automatically.
- Create a new journey for user migration.
- Collect user input with Collect information journey step.
- Add the appropriate migration step for source IDP and your chosen authentication method, for example Auth0 Password Authentication or Apple. Configure this step with your IDP connection details.
- Add a Create user step to provision the user in Mosaic.
After successful migration, prompt users to register modern authenticators like passkeys or PIN for enhanced security. This can be done within the same journey or during a subsequent login.
To add authenticator registration to your migration journey:
- After the user is provisioned, add a registration step such as:
- Configure the step to guide users through the registration process.
- Optionally, allow users to skip registration and complete it later.