Coder Social home page Coder Social logo

Comments (2)

vmurin avatar vmurin commented on July 4, 2024

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:

  1. try to use "singleTop" mode for main activity and see whether it works
  2. 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.

ntvinhit avatar ntvinhit commented on July 4, 2024

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)

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.