Coder Social home page Coder Social logo

Comments (6)

Clancey avatar Clancey commented on September 15, 2024

This is fixed by using a custom scheme to redirect and registering it in the application.manifest. https://github.com/Clancey/simple_auth#redirect

from simple_auth.

wsdt avatar wsdt commented on September 15, 2024

Unfortunately, it is not. We used a local redirect link. In that case the redirection worked in every case (except for Google and this might/will be resolved by adding it to the manifest).

But as said the redirection for all other apis worked, just the window did not close which then resulted in a cancelledexception although the authentication worked out.

from simple_auth.

Clancey avatar Clancey commented on September 15, 2024

Do you mind sharing the redirect url you choose? When you say local, was it localhost?

from simple_auth.

wsdt avatar wsdt commented on September 15, 2024

localhost:8080/redirect

And it worked after authentication.
It's just the window from the other authenticator classes which does not close automatically

from simple_auth.

Clancey avatar Clancey commented on September 15, 2024

This is exactly what I was thinking. With the secure native logins, it is impossible to redirect that back to the app. As I said before that login window if your not using embedded is outside the scope of your app. So you need a redirect to open your app again. I promise you it's worth it to jump through the extra hoops.

You should use a custom redirect instead of an http one. Then you need to register it with the application.manifest. So I would redirect to something like myappname://redirect

Then it will work without the changes your posted. And It is more secure!

from simple_auth.

wsdt avatar wsdt commented on September 15, 2024

Ok I will give it a try!
Thank you for your patience 👍

from simple_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.