Setting Application Login URI for Mobile Apps

Overview

Some users get stuck in a state where they are unable to login with to their iOS app, and the following error message is generated.

Oops Something went wrong...


Applies To
  • Application
  • Login URI
  • Mobile Apps
Cause

The Application Login URI or Default Login Route is often used to mitigate the issue of "Oops Something Went Wrong" error page caused by bookmarked login page, cookie missing, and etc. The intent is to set it to a destination in the application that would restart the login flow from the /authorize endpoint and this typically will allow users who are stuck in this state to login again.

However, currently the *Application Login URI* accepts URLs with `https` scheme only, which makes it unable to be used by native apps, which requires a mobile app style URL (e.g. `com.company.myapp://company.auth0.com/ios/com.company.myapp/callback`) to let the app restart the authorize request.

Solution

The recommended workaround is to 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 would be a new Intent-Filter (Android) or Universal-Link (iOS) and your application would handle the invocation on its own (e.g. launching Universal Login Page). This intermediate https page would need to be hosted by the application outside of Auth0.  

To set an Application Login URI at the application level:

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

image.png
 

Related References

 

Recommended content

No recommended content found...