Comments (12)
I think I found it! You mean like this?
azureAuth.webAuth.authorize({ scope: 'openid', prompt: 'login' })
Solved adding - prompt: 'login' - to
azureAuth.webAuth.authorize({ scope: 'xxxxxx', prompt: 'login' })
Thank you so much!
from react-native-azure-auth.
Hi,
this is a duplicate of the issue #32
The problem exists on iOS only. The reason - Azure logout is interactive now. You should select the account to logout and not only navigate to logout link. By default clearSession() closes the browser window after the logout URL is loaded successfully.
So take a look at the two last comments in the issue #32 and choose one of the proposed solutions
from react-native-azure-auth.
Ok, will do – thanks!
Also, I think I noticed an error on this line:
react-native-azure-auth/src/auth/index.js
Line 247 in 640c62b
Should be: this.cache.removeToken
from react-native-azure-auth.
By the way – it‘s not only on iOS, we got the same problem also on Android
from react-native-azure-auth.
There’s still might be a problem with this solution – as it might be that the user was successfully logged in on Microsoft, but was not authorized on app’s server. In this case, it get stuck a bit in the middle
Isn’t there any way to force re-choosing the user?
from react-native-azure-auth.
Also, getting the error: Cannot use 'in' operator to search for 'closeOnLoad' in [email protected]
from react-native-azure-auth.
You should select the account to logout
that means the email?
from react-native-azure-auth.
- See my screenshots of logout screen on android - similar screen as you posted here, but with logout question. After correct logout you will be prompted for login as in the first time
- Thank you very much for the bug reporting! (removeToken)
- to force user to login just call with
prompt
parameter - see #51 last comment - the last error caused by wrong parameters by clearSession call
I will push this changes in a couple minutes:
- add clearSession param check
- bugfix removeToken
from react-native-azure-auth.
Thank you @vmurin for your quick response!
from react-native-azure-auth.
I think I found it! You mean like this?
azureAuth.webAuth.authorize({ scope: 'openid', prompt: 'login' })
from react-native-azure-auth.
vmurin: I think you should add it to instructions or set by default. Thanks.
Romeo
from react-native-azure-auth.
vmurin: I think you should add it to instructions or set by default. Thanks.
Romeo
Hi Romeo,
thank you for your feedback.
Each app has own use cases and the one of it is if user just want to re-login. That's why I did not add it as default.
Vladimir
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.