Code Monkey home page Code Monkey logo

Comments (6)

markbates avatar markbates commented on July 18, 2024

I've thought about it, but not sure how you'd go about it. Could probably implement basic http auth, but db driven would be a lot harder.

from goth.

tylerstillwater avatar tylerstillwater commented on July 18, 2024

Right.. goth shouldn't care about the DB in any way. If anything, we'd need a callback function the calling code uses to do DB work for us.

from goth.

tylerstillwater avatar tylerstillwater commented on July 18, 2024

I'm not sure user/pass makes much sense in terms of goth, though. It really is architected for oauth flows.

from goth.

markbates avatar markbates commented on July 18, 2024

Sorry, I've been away for the last few days. I'm going to close this, for now. I agree I think it would be a of a shoehorn to get it in.

Let's keep in the back of our minds and if a solution pops in then we can re-open.

from goth.

digitalplaywright avatar digitalplaywright commented on July 18, 2024

https://github.com/simplabs/rails_api_auth is a rails example for supporting the "Resource Owner Password Credentials Grant" OAuth 2.0 flow as well as Facebook authentication. It is extremely simple and not many lines of code, and hopefully this can be made into an equivalent. However, the scope of this package is for APIs with bearer tokens only and not for cookie based sessions.

from goth.

lucagez avatar lucagez commented on July 18, 2024

This PR #506 can add support for the Password Grant flow

from goth.

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.