S
S
Sergey2014-03-20 22:53:39
symfony
Sergey, 2014-03-20 22:53:39

FOSOAuthServerBundle. Is it possible to login with username/password?

I read a lot of articles, but did not find a way to authorize in FOSOAuthServerBundle via login and password in order to receive an accessToken in response.
As I imagine it...
Request:
{
"_username":"login",
"_password":"qwerty"
}
Response:
{
"accessToken":"..."
}
It is also not clear how to create a user through a similar request .
Please advise how to implement this. Not the first day I try. Maybe I don’t use it at all, or somehow it’s not right ... a dead end, in general.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question