LINE Social Connection Not Working on iOS Safari
Last Updated:
Overview
When an end-user tries to log in to an application using iOS, Safari, or LINE Social Connection + LINE application, the following is observed:
- Native Applications: The login/authorization sequence fails.
- Web (SPA or Regular Web) Applications: A new window/tab is opened upon callback. The outcome depends on the SDK and its configuration.
Symptoms
- For Native Applications
- The native application opens the Safari browser and displays the Universal Login page.
- The end-user taps the Continue with LINE button.
- The browser launches the LINE application.
- The end-user is authenticated within the LINE application, and then the LINE application opens a new browser window/tab. This window opened by the LINE application is different from the one the native application opened at the beginning of the login/authorization sequence.
- The Native application cannot handle the callback. The login sequence fails.
- When the user reopens the Universal Login page, the login sequence succeeds (because the browser has a session).
- Web (SPA or Regular Web) Applications
- The web application opens the Safari browser and displays the Universal Login page.
- The end-user taps the Continue with LINE button.
- The browser launches the LINE application.
- The end-user is authenticated within the LINE application, and then the LINE application opens a new browser window/tab. The window opened by the LINE application is different from the one the web application opened at the beginning of the login/authorization sequence.
- With some SDKs / configurations, the user can log in to the application on the new window. Sometimes, the login sequence fails, and the tenant displays the error message:
To reproduce the issue
- Use Safari as a default browser.
- Clear History and Website Data.
- Install the LINE application.
- Enable the LINE Social Connection for an application and log in to the application.
Applies To
- LINE Social Connection
- LINE Application
- Web and Native Applications
Cause
The LINE application has a feature named auto login. It will open the LINE application so end users can authenticate themselves without inputting credentials on the browser. However, the LINE application opens a new browser window/tab once its authentication process is complete.
This behavior prevents login transactions for a native application from completing.
Solution
- Use the disable_auto_login or disable_ios_auto_login option
Add the upstream_params option to the LINE social connection using Management API to pass this parameter to the LINE's server.
"options": {
....
"upstream_params": {
"disable_auto_login": { "value": "true" }
}
}
- Change the default browser
- iOS device
- Safari
- LINE application
As this issue involves multiple parties outside of Auth0, at this time, there is no solution to accommodate end-users using iOS Safari with the LINE app installed. This edge case is being tracked internally, however please feel free to submit Product Feedback on the Auth0 Community Site to track interest in this issue so the Auth0 Product team can prioritize accordingly.