Coder Social home page Coder Social logo

Comments (12)

ironmanromeo avatar ironmanromeo commented on July 4, 2024 1

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.

vmurin avatar vmurin commented on July 4, 2024

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.

oferRounds avatar oferRounds commented on July 4, 2024

Ok, will do – thanks!
Also, I think I noticed an error on this line:

this.removeToken(uTokenKey)

Should be: this.cache.removeToken

from react-native-azure-auth.

oferRounds avatar oferRounds commented on July 4, 2024

By the way – it‘s not only on iOS, we got the same problem also on Android

from react-native-azure-auth.

oferRounds avatar oferRounds commented on July 4, 2024

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.

oferRounds avatar oferRounds commented on July 4, 2024

Also, getting the error: Cannot use 'in' operator to search for 'closeOnLoad' in [email protected]

from react-native-azure-auth.

oferRounds avatar oferRounds commented on July 4, 2024

You should select the account to logout

that means the email?

from react-native-azure-auth.

vmurin avatar vmurin commented on July 4, 2024
  • 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.

oferRounds avatar oferRounds commented on July 4, 2024

Thank you @vmurin for your quick response!

from react-native-azure-auth.

oferRounds avatar oferRounds commented on July 4, 2024

I think I found it! You mean like this?
azureAuth.webAuth.authorize({ scope: 'openid', prompt: 'login' })

from react-native-azure-auth.

ironmanromeo avatar ironmanromeo commented on July 4, 2024

vmurin: I think you should add it to instructions or set by default. Thanks.

Romeo

from react-native-azure-auth.

vmurin avatar vmurin commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.