I have written an API which supports OAUTH2's 'Resource Owner Password Credentials Grant' authentication workflow. http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-4.3
I have a Symfony2 application and would like users to be able to input their username and password into a form and for the security system to exchange these with my API for an access_token.
I know its possible to write a custom authentication handler to accomplish this task but if possible I'd like to use an off the shelf tool. After some research I can see lots of libraries support only the more traditional 3 legged worktflow.
Are there any libraries that integrate the 'Resource Owner Password Credentials Grant' workflow into the Symfony security system?
Yes, FOSOAuthServerBundle does. Grant type: client_credentials
There is some documentation on it here , not specific to 'Resource Owner Password Credentials Grant' but you should be able to work it out. If you do, please create a PR on GitHub with some extra documentation for the bundle.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.