Z
Z
zikko1222016-12-01 17:11:33
symfony
zikko122, 2016-12-01 17:11:33

Login and password authorization FOSOAuthServerBundle+FOSUserBundle, Symfony 2?

Good afternoon everyone, I have a problem when implementing authorization using FOSOAuthServerBundle + FOSUserBundle. I don’t understand how to implement the Rest authorization controller so that you can log in by entering a login and password, so that an access_token, refresh_token would come in response. If someone faced a similar problem, help, maybe there is some alternative solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2016-12-01
@prototype_denis

https://github.com/FriendsOfSymfony/oauth2-php/blo...
When creating a client, give it the appropriate grant type
The simplest process description from the link below
https://gist.github.com/tjamps/11d617a4b318d65ca583

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question