GithubHelp home page GithubHelp logo

Comments (7)

alexbilbie avatar alexbilbie commented on July 24, 2024

Sorry, can you define "embedded user-agent"? Which grant auth is that in the spec (or which extension spec is it) ?

from oauth2-server.

spydr avatar spydr commented on July 24, 2024

Sorry for confusing you, what I mean is getting the token without the need for redirect_uri like in this case: http://tools.ietf.org/html/rfc6749#section-4.3 where only the grant_type , username, and password are required

I know the library supports that but I doubt if redirect_uri is optional.

from oauth2-server.

alexbilbie avatar alexbilbie commented on July 24, 2024

Ah sorry you mean the password grant. Yep it does support it and if you can hold off a day or so I'll have some significantly better documentation up to show how to implement it

from oauth2-server.

spydr avatar spydr commented on July 24, 2024

Yes the password grant. I just test if it supports the password grant, unfortunately it requires redirect_uri which in fact in such grant there are only 4 parameters namely: grant_type, username, password, and an optional scopes.

Basically what I'm trying to achieve is I have an app (trusted of course) with username and password input fields and when user clicks the button, the app will send a post request (curl or whatever) with ONLY username and password (aside from scopes which by default all scopes are granted) of the client to get the token.

from oauth2-server.

alexbilbie avatar alexbilbie commented on July 24, 2024

The password grant is in the develop branch https://github.com/lncd/OAuth2/blob/develop/src/Oauth2/Authentication/Server.php. However in the feature/reorg branch we've we designed the API from the ground up (hence my comment about waiting a day or so for updated docs)

from oauth2-server.

spydr avatar spydr commented on July 24, 2024

Much appreciated, thanks.

from oauth2-server.

MichaelGooden avatar MichaelGooden commented on July 24, 2024

This appears to be in the master branch and latest tagged versions, so this issue should be closed.

from oauth2-server.

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.