Hi,
I am trying to log in to the application using Single Sign-On (SSO) on my iOS device. During the Microsoft authentication process, the application redirects to the in-app browser for authentication. The authentication is completed successfully; however, after successful login, the application remains in the in-app browser and does not redirect back to the mobile application as expected.
Because of this behavior, the user is unable to continue using the mobile application after authentication.Thank you in advance for your time and assistance. Regards,Anusha.
Hi @Anusha Pinnamraju ,
Please follow the below steps: Create one screen configured with an Anonymous role.
This screen will act as the original URL. Configure it as a DeepLink.
On Login button click:
Send the original URL (DeepLink URL) as a parameter.
Call the GetLoginURL client action (from the IDP integration).
The IDP returns the login URL.
Use the returned URL to open the system browser: OpenInSystemBrowser(BaseURL + GetLoginURL.URL)
After Successful Authentication, the app is redirected to the DeepLink screen.
On the DeepLink screen:
Call the GetUserRole action.
Inside this action, use the Login action.
Send:
IsLoggedIn = true
AppIdentifier = AppIdentifier + "://modulename/"
In the On After Fetch event of GetUserRole:
1. If IsLoggedIn == true, Close the in-app browser and Navigate the user to the original destination page.
2. If IsLoggedIn == false, Redirect again to the same DeepLink page with the User ID: GetUserRole.AppIdentifier + "DeepLink?InUserID=" + GetUserId()Regards,mahesh.
Hi @Bandaru Mahesh,
Thank you for your valuable time and for providing the solution. I truly appreciate your support and guidance in resolving the issue.
Regards,
Anusha.
Hi @Anusha Pinnamraju
There are many common root causes but you could check below to see if these are configured properly. I had faced similar issue with Auth0 when no callback URL defined.
1. Redirect URI not matching app configuration
2. App is not set up to handle the callback URL
Thanks!!