GithubHelp home page GithubHelp logo

Comments (4)

Clancey avatar Clancey commented on May 19, 2024

Nothing is hard coded. Any part can be overridden. It does default to what is needed for most providers. However things like Facebook override things. https://github.com/Clancey/simple_auth/blob/master/simple_auth/lib/src/api/webAuthenticator.dart#L46-L71

from simple_auth.

torleifs avatar torleifs commented on May 19, 2024

I was thinking about the authCodeKey in WebAuthenticator, but you are right, it can be modified.
However, this part:
https://github.com/Clancey/simple_auth/blob/master/simple_auth/lib/src/api/webAuthenticator.dart#L27-L40
is a bit problematic because it expects the query parameters to contain a parameter named the same as the content of authCodeKey. If authCodeKey is "code id_token" , this will fail since the authorization code will be in a parameter named code also when using hybrid flow.

Additionally, the comment above this method is a bit misleading as the method looks for authorization codes, not tokens.

from simple_auth.

Clancey avatar Clancey commented on May 19, 2024

It's not a problem. You subclass and you can modify that behavior. You can change what gets passed in and what it's looking for!

from simple_auth.

Clancey avatar Clancey commented on May 19, 2024

Feel free to re-open this if you still need help. Also if you just want to ask a few questions, the Gitter chat works great.

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.