A cloud-based identity and access management service for securing user authentication and resource access
https://login.microsoftonline.com/common/SAS/BeginAuth
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In our react native app, we have enabled Microsoft authentication using WebView. While authenticating, we collect the parameters such as "code" in the URL ( https://login.microsoftonline.com/common/oauth2/v2.0/authorize). Using those parameters we authenticate the app. But when MFA is enabled, sometimes we don't receive the required params in the URL.
Steps to replicate:
App remains as it is, without any parameters added.
What do we expect?
After the above steps are followed, the required parameters need to be added to the URL in order to authenticate.
Additional details:
URL Changes that we are tracking on our end (if needed):
A cloud-based identity and access management service for securing user authentication and resource access
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation
HI @Ramya Reddy • Thank you for reaching out.
When MFA is not enabled, the code is directly returned in response to the call at https://login.microsoftonline.com/common/login endpoint and based on the response_mode=query parameter, it is sent as URL parameter to the redirect_URI.
However, when MFA is enabled, after the call at https://login.microsoftonline.com/common/login, a call to the below endpoints happens to perform MFA:
https://login.microsoftonline.com/common/SAS/BeginAuth
https://login.microsoftonline.com/common/SAS/EndAuth
https://login.microsoftonline.com/common/SAS/ProcessAuth
Once the MFA is done, the code should be sent at the redirect_uri. In your case, when the code is being returned, I am suspecting that the response is not successfully returned from these endpoints.
I would suggest you capture a Fiddler trace to see what response you are getting from the above endpoints and based on that we can help identify the cause of the issue.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.