Comments (2)
The app opens new browser tab intent to do Azure login and then this Tab get redirected to the URLScheme defined as our app prefix, in other words not new http(s) address will be opened but our app from where we have called the new browser tab. In the app we have an URL Listener that intercepts the redirect and exchanges the auth code from URL with auth token.
Therefore we need that our initial activity where the URL Listener is set up to be called. It ist granted due to "singleTask" mode.
The difference to google affiliated libraries is that they are using native clients to sign in, and for Azure the browser tab and "normal" web sign in is used.
What you could do:
- try to use "singleTop" mode for main activity and see whether it works
- try to split your app into activities and use "singleTask" only for Azure auth one. (not sure how it can be accomplished with react native)
Sorry if it does not help.
Otherwise this is the limitation of the current solution.
from react-native-azure-auth.
Thank you for your help. I tried with singleTop and it didn't work.
I tried with singleInstance then it works with both "react-native-google-signin" and "react-native-azure-auth", but not works with notification.
I will be digging it deeper.
from react-native-azure-auth.
Related Issues (20)
- Is there any way to clearSession without opening the dialog modal ? HOT 1
- Crash: No Activity found to handle Intent { act=android.intent.action. VIEW dat=https://login HOT 1
- yarn install fails when node_modules and lock files are deleted HOT 1
- Glitch - loop to redirect to login popup, not redirect to app HOT 14
- msGraphRequest for other endpoints that use POST
- Infinite Loading on microsoft login HOT 6
- Does the framework work on React-Native-Macos and React-Native-Windows? HOT 1
- Android build error with latest RN version 0.72.1 HOT 3
- Not able to set in.veris.userandroid://in.veris.userandroid/android/callback. as redirect uri in azure AD HOT 3
- Logout does not work at iOS and Android HOT 2
- Compile Android problem
- Authentication IOS: Network request failed with face ID (IOS)
- ClearSession WebView iOS error when closing HOT 2
- Azure MFA Network Failure on iOS HOT 3
- Logout Redirect issue HOT 5
- First login attempt always fails HOT 3
- Expo Support HOT 1
- Logout WebView Not Closing HOT 3
- AcquireTokenSilent not working HOT 1
- [iOS] - Popup name edit HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-azure-auth.