Configure mobile apps to use specific identity providers

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 2 minutes de lecture
  • You can configure a login experience that is specific to a mobile app and different from the web login experience. For example, Now® Mobile app users can be automatically redirected to an identity provider (IdP) that is different from the IdP that is defined for the web session.

    Avant de commencer

    Role required: admin

    Pourquoi et quand exécuter cette tâche

    Admins can define the login experience for mobile users by associating app-specific login pages for mobile apps. For example, admins can enforce the following authentication scenarios:
    • When an instance is enabled with single sign-on (SSO), admins can configure mobile users to be redirected to a specific IdP login screen on their mobile app. This login screen can be different from the automatically redirected IdP that is defined for the instance.
    • Configure the mobile app to display the ServiceNow® SSO login page where users can provide their credentials to initiate the SSO login flow.
    • Configure the mobile app to display a custom login page with buttons that redirect users to different IdPs based on their role or persona.

    Procédure

    1. Navigate to All > Application Registry.
    2. Select an application of OAuth Client type to open it.
      For example, select ServiceNow Agent, which is an OAuth Client.
    3. In the Login URL field of the Application Registries page, enter the login URL you want to use for this mobile app.
      Application Registries screen showing the Login URL field.
      For example, enter:
      • oauth_login.do

        This login URL causes the local login screen to appear.

      • login_with_sso.do?glide_sso_id=<valid active IdP sys_id>

        This login URL redirects the user to an external IdP that is specified with the IdP sys_id in the glide_sso_id parameter.

      • login_locate_sso.do

        This login URL displays the ServiceNow SSO login screen where users can enter their email or user ID.

        ServiceNow SSO login page on a mobile app screen.

      You can also enter the login URL for a custom login page.

      Important :

      If you enter login_with_sso.do for the Login URL, you must also provide a valid IdP sys_id as a glide_sso_id parameter to the URL. For example:

      login_with_sso.do?glide_sso_id=bc47c42887101010d00b5773e8cb0b85

      To get the valid IdP sys_id:
      1. In your instance, navigate to All > Identity Providers
      2. In the Identity Providers page, select the IdP provider.
      3. On the IdP provider page, right-click the page banner, and select Copy sys_id.

        Right-click menu showing the option to copy the IdP's sys_id.

      If a valid IdP sys_id isn’t provided, the OAuth client login URL value can't be saved.

      For information about configuring an external IdP on your instance, see Create an external identity provider.

    4. Select Update to save the entry.

    Résultats

    Open the mobile app on a mobile device and select the instance. You should be redirected to the login page that was set up on the instance in the Application Registry.

    Remarque :
    If login_locate_sso.do was saved as the Login URL and no default IdP is configured or the sso_source for the user isn’t set, then an error displays when the user name is entered. This behavior is similar to web UI behavior.