I'm new to OAuth. I'm trying to implement https://github.com/lucadegasperi/oauth2-server-laravel#password-flow
I've already inserted id
and secret
into oauth_clients
table. Also I have inserted username and password into users
table. (via Phpmyadmin)
After I try to do the request:
POST http://localhost:8000/oauth/access_token?
grant_type=password&
client_id=weredfsdfsrq341&
client_secret=dfwefsdf&
username=test@test.com&
password=123456
But response is:
{
error: "invalid_request"
error_description: "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "client_id" parameter."
}
My route is
Route::post('oauth/access_token', function()
{
return AuthorizationServer::performAccessTokenFlow();
});
What am I doing wrong?