Skip to main content

Domain Migration and Alternative Server URLs

The Nevis Mobile Authentication SDK stores a server URL for each registered account. The mobile application can update this URL and define alternative URLs, without the user having to register again. Together with changes in the backend configuration, this supports the following scenarios:

For details on the SDK behavior and the URL matching rules, see Domain Migration and Alternative Server URLs in the Mobile SDK documentation.

Availability
  • This feature requires native Mobile SDK version 4.7.0, Flutter 4.8.0 and React Native 5.4.0 or later.
  • The Nevis Access App does not support this feature yet. Until it does, the procedures on this page only apply to custom applications based on the Mobile SDK.

Configuration Elements That Contain the Domain​

ElementLocationPurpose
AppIDfido-uaf.app-id in nevisFIDO. nevisIDM also stores it with each FIDO UAF credential and dispatch target.The SDK retrieves the facets from this URL. nevisFIDO only uses credentials with this AppID.
Redemption URLsregistration-redeem-url, authentication-redeem-url and deregistration-redeem-url of the nevisFIDO dispatchers.Out-of-band operations.
Server URLsStored by the SDK on the mobile device and updated by the mobile application.The base URL is used for in-band operations. The alternative base URLs are additional URLs accepted for out-of-band operations.

Updating the server URLs only changes the data on the mobile device. The AppID and the redemption URLs are changed separately in the backend.

Endpoint Paths​

This section describes concepts used in the sections below.

The endpoint paths are defined in the SDK Configuration java, swift, objc, flutter, react native of the mobile application, and they apply to all accounts on the device. There are two types of paths:

The endpoint is built from the base URL and the relative path. For instance, if the base URL is https://login.siven.ch/nevisfido and the authentication request path is /uaf/1.1/request/authentication/, the authentication request URL is https://login.siven.ch/nevisfido/uaf/1.1/request/authentication/.

When the SDK derives a base URL from a redemption URL or from the server URL of a registration, it only takes the host and the port of that URL, and appends the path of the base URL in the SDK configuration. The base URL and the alternative base URLs of every account must therefore have the same path as the base URL in the SDK configuration, and every backend must expose its endpoints under the same relative paths.

Prerequisites​

  • Usernames are unique across all backends.
  • URLs are written consistently. The SDK treats https://siven.ch and https://siven.ch:443 as different URLs.
  • All server URLs and all backends use the same base URL path as the SDK Configuration java, swift, objc, flutter, react native. Only the host and the port can differ. If the base URL path or the relative endpoint paths after the migration differ from the ones before the migration, see If the Endpoint Paths Differ.

If the Endpoint Paths Differ​

If the old and the new URLs use different endpoint paths, for example if the old base URL was https://login.siven.ch/auth/nevisfido and the new one is https://auth.siven.ch/nevisfido, the following constraints apply:

  • All accounts of the application on a device must be migrated together, because the SDK configuration is common to all accounts on the device. The application updates the server URLs of all accounts and starts using the SDK configuration with the new endpoint paths at the same time.
  • The redemption URLs configured in the nevisFIDO instances of the migrated accounts must use domains whose endpoints match the new endpoint configuration. Therefore, out-of-band payloads from a backend that still uses the old paths fail for migrated accounts.

The devices do not have to be migrated all at once. The application can migrate one device after the other, for example when the backend indicates that the user has been migrated.

Domain Migration​

In this scenario, all users move from login.siven.ch to auth.siven.ch and keep their authenticators. Because nevisFIDO supports only one AppID, and each dispatcher only one set of redemption URLs, the backend switches to the new domain in a single step. The updated mobile application must therefore be rolled out first. With this procedure, the migration is transparent to the users.

PhaseBackendMobile application
1. Roll out the applicationMake the new domain reachable. Do not change the AppID and the redemption URLs yet.Release a version that uses an SDK supporting AppID changes, and that sets the new domain as base URL and the old domain as alternative base URL. Wait until all active users have installed it (see Impact on Users Without the Updated Application).
2. Switch the backendChange the AppID in nevisFIDO and nevisIDM, and the redemption URLs, to the new domain.No change.
3. Remove the old domainUpdate the network configuration so that the old domain is no longer reachable.Optionally, remove the old domain from the alternative base URLs with the Mobile SDK.

The following diagram shows which domain an updated application uses in each phase.

title="Domain migration from login.siven.ch to auth.siven.ch"

Procedure​

  1. Phase 1:

    • Make the new domain reachable, for example with an additional virtual host in nevisProxy. Both domains must point to the same backend.
    • Release a version of the mobile application that uses an SDK supporting AppID changes (native Mobile SDK version 4.7.0, Flutter 4.8.0 and React Native 5.4.0 or later). This version must:
      • Update every account whose base URL contains the old domain: set the new domain as base URL and the old domain as alternative base URL. The previous base URL is not kept automatically. Perform this check at every start of the application, because users who register out-of-band before phase 2 still receive the old domain.
      • Use the new domain in the base URL of the SDK configuration.
      • Directly after each successful registration, set the new domain as base URL and the old domain as alternative base URL of the account. Out-of-band registrations before phase 2 initially store the old domain as base URL and must be migrated without waiting for the next application start. Keeping the old domain as an alternative allows the account to accept the old redemption URLs until phase 2.
    • Nevis does not monitor the progress of the migration. Use app store statistics or your own analytics to decide when to continue.
  2. Phase 2:

    caution

    Only start phase 2 when all active users run an application version that supports the migration, or when it is acceptable that users without the update can no longer authenticate until they update. See Impact on Users Without the Updated Application.

    Perform the following changes in one maintenance window:

    • Set fido-uaf.app-id in nevisFIDO to the facets URL of the new domain, for example https://auth.siven.ch/nevisfido/uaf/1.1/facets.
    • Set the AppID of all existing FIDO UAF credentials and dispatch targets in nevisIDM to the same value, either with the REST API or directly in the database. See Changing the AppID in nevisIDM. nevisFIDO ignores credentials and dispatch targets with a different AppID, and does not update them.
    • Change registration-redeem-url, authentication-redeem-url and deregistration-redeem-url of all nevisFIDO dispatchers to the new domain.

    The AppID and the redemption URLs can also be changed in separate maintenance windows, in any order.

  3. Phase 3: Update the network configuration so that the old domain is no longer reachable. Keep the update logic from phase 1 in the mobile application, so that users who install the update late are still migrated.

Changing the AppID in nevisIDM​

nevisIDM stores the AppID in each FIDO UAF credential and in each dispatch target. Depending on whether the dispatch targets were migrated, the dispatch targets are stored as dedicated entities or as generic credentials with the fidouaf_app_id property. Update all of them. The AppID of a dispatch target can have at most 100 characters.

The procedures in this section apply to nevisIDM LTS 2026 and the rolling release. In the following examples, https://login.siven.ch/nevisfido/uaf/1.1/facets is the old AppID and https://auth.siven.ch/nevisfido/uaf/1.1/facets is the new AppID.

With the nevisIDM REST API​

  • FIDO UAF credentials: list the credentials of each user, and update the appId of each credential with PATCH.
  • Dispatch targets stored as dedicated entities: update the appId with PATCH.
  • Dispatch targets stored as generic credentials: update the fidouaf_app_id property with PATCH.

With a Direct Database Update​

The following statements work with MariaDB, PostgreSQL and Oracle. Run them in one transaction, after you have backed up the database. Database triggers record the changes in the history tables (_V suffix). Do not modify the history tables manually.

-- FIDO UAF credentials
UPDATE TIDMA_FIDO_UAF
SET APP_ID = 'https://auth.siven.ch/nevisfido/uaf/1.1/facets'
WHERE APP_ID = 'https://login.siven.ch/nevisfido/uaf/1.1/facets';

-- Dispatch targets stored as dedicated entities
UPDATE TIDMA_DISPATCH_TARGET
SET APP_ID = 'https://auth.siven.ch/nevisfido/uaf/1.1/facets'
WHERE APP_ID = 'https://login.siven.ch/nevisfido/uaf/1.1/facets';

-- Dispatch targets stored as generic credentials
UPDATE TIDMA_PROPERTY_VALUE
SET VALUE = 'https://auth.siven.ch/nevisfido/uaf/1.1/facets'
WHERE VALUE = 'https://login.siven.ch/nevisfido/uaf/1.1/facets'
AND PROPERTY_ID IN (SELECT PROPERTY_ID FROM TIDMA_PROPERTY WHERE NAME = 'fidouaf_app_id');

nevisIDM reads the changed values immediately. A restart is not required.

Impact on Users Without the Updated Application​

  • If the application uses an iOS SDK version that does not support AppID changes, the existing credentials can no longer be used after phase 2.
  • With any other outdated application version, out-of-band operations fail after phase 2, and all operations fail after phase 3, until the user installs the updated version.

Separate Registration and Authentication Domains​

In this scenario, out-of-band registration uses onboarding.siven.ch, and all other operations use auth.siven.ch.

Configure the backend as follows:

  • Set registration-redeem-url to the registration domain, and authentication-redeem-url and deregistration-redeem-url to the authentication domain.
  • Use the same AppID for both domains.
  • Expose the registration and dispatch target endpoints on the registration domain.

Directly after a successful registration, the mobile application sets the authentication domain as base URL and the registration domain as alternative base URL of the account.

title="Separate registration and authentication domains"

High Availability for Out-of-Band Operations​

In this scenario, the backend is reachable through one URL per site, for example site-a.siven.ch and site-b.siven.ch. All sites share the same nevisIDM data and AppID, and the out-of-band payloads can contain the URL of any site.

For every account, the mobile application sets one site as base URL and all other sites as alternative base URLs. Use the same base URL for all accounts.

title="Out-of-band operations on several sites"

In-band operations and the retrieval of the facets do not switch to another site. Make the base URL and the AppID host highly available on the network level, for example with a load balancer.

Moving Individual Users to Another Backend​

In this scenario, a single user moves from one backend to another, for example from ch.siven.ch to hu.siven.ch. Moving the user data, including the FIDO UAF credentials and dispatch targets, is the responsibility of the operator. Proceed as follows:

  1. Move the FIDO UAF credentials and dispatch targets to the target backend.
  2. If the backends use different AppIDs, set the AppID of the moved credentials and dispatch targets to the target backend AppID. This requires an application version that uses an SDK supporting AppID changes (see Impact on Users Without the Updated Application). See Changing the AppID in nevisIDM.
  3. In your application, update the base URL of the account with UpdateServer java, swift, objc, flutter, react native.
caution

The SDK configuration defines the base URL path and the relative endpoint paths for all accounts on a device (see Prerequisites). An account can be moved independently only if the source and target backends use the same paths. If either path differs between the source and the target backend, all accounts on the device must be moved together with the SDK configuration, see If the Endpoint Paths Differ.

The mobile application updates the base URL of this user only. Optionally, it keeps the old backend as alternative base URL for a transition period.

title="Moving one user to another backend"

Rollback and Cleanup​

To roll back a domain migration, follow the procedure in the opposite direction. If the old domain has already been removed, make it reachable again first. Then release a version of the mobile application that sets the old domain as base URL, both for the accounts and in the SDK configuration. Keep the new domain as alternative base URL until the redemption URLs point to the old domain again. If the AppID was changed, revert it in nevisFIDO and nevisIDM together.

To clean up, set the alternative base URLs to the URLs that are still in use, or remove them. The new set of alternative base URLs replaces the existing one.

Limitations​

  • Only the mobile application can update the server URLs on the mobile device. The backend cannot update them.
  • All URLs and all backends must use the same endpoint paths as the SDK configuration. If the paths change, all accounts on a device must be migrated together with the SDK configuration. See If the Endpoint Paths Differ.
  • nevisFIDO supports one AppID at a time, and one set of redemption URLs per dispatcher.
  • Nevis does not provide monitoring of the migration progress.
  • The SDK does not validate the URLs set by the mobile application.
  • The limitations of the multiple backend support of the SDK apply.