FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers
https://commerce.nearform.com/open-source/react-native-app-auth
MIT License
2.02k stars 440 forks source link

Azure AD authentication configuration issues - React-Native Android App #1008

Open rreis27 opened 3 months ago

rreis27 commented 3 months ago

Issue

I'm using code based upon the samples and basically what happens is a system browser is opened and I can authenticate, next I am able to input the correct Microsoft 2FA code, but the browser never completes. If I close the opened browser I get the error: Failed to Log in User cancelled flow. Our Azure AD is hooked to both Microsoft 2FA and Duo.

In other Android apps that require authentication (Outlook or FortiToken Mobile) that are hooked to my Azure AD credentials typically receive both Microsoft 2FA and Duo 2FA. Is there something related to having more than one 2FA hooked to the account?

Any thoughts on how to fix or troubleshoot this?

Environment

Identity Provder - Azure Platform - Android React-Native - 0.74.3 react-native-app-auth` Version - 7.2.0 I am using Expo SDK - 51.0.22

mabdaleem commented 2 weeks ago

I hope you were able to solve the issue by now. If yes ,could you please share your crucial findings for the benefit of others. If you still need help , please share your code with details