Setting Application Login URI for Mobile Apps in Auth0

Overview

Users experience a state in which they cannot sign in to an iOS application because the Application Login URI only accepts URLs with the HTTPS scheme. Resolve mobile application login errors by setting the Application Login URI to an HTTPS page that redirects to the native application. When this issue occurs, Auth0 generates the following error message:

 

Oops Something went wrong...

 

Applies To

  • Auth0
  • Application
  • Login URI
  • Mobile Apps

Cause

The Application Login URI or Default Login Route mitigates the issue of an error page resulting from a bookmarked login page, a missing cookie, and other similar factors. The intent is to configure the URI to a destination in the application that restarts the login flow from the /authorize endpoint. This configuration allows users who experience this state to sign in again. However, the Application Login URI accepts URLs with the HTTPS scheme only. This restriction prevents native applications from using the Application Login URI if the application accepts the URL with custom URI schemes only (for example, com.company.myapp://company.auth0.com/ios/com.company.myapp/callback) to let the application restart the authorize request.

Solution

What steps are required to configure the Application Login URI at the application level?

Set the Application Login URI to an HTTPS page, which in turn issues a redirect to the native application via the custom scheme. This URL requires a new Intent-Filter (Android) or Universal-Link (iOS), and the application handles the invocation on its own (for example, launching the Universal Login Page). The application must host this intermediate HTTPS page outside of Auth0.

 

Navigate to the application settings in the Auth0 Dashboard and enter the URL in the Application Login URI field to configure the application.

  1. Go to the Auth0 Dashboard and choose the Applications page.
  2. In Application Settings, scroll down to the Application URIs section.
  3. Enter the URL in the Application Login URI field.

The following image displays the Application Login URI field located under the Application Settings section.

Application Login URI under Application Settings

 

Related References

Recommended content

No recommended content found...