I am using oauth2-server-laravel package, I am new to oauth. I am trying to implement Password Flow method of this library. I am stuck at how to give client_id and client_secret.
Here's my route:
Route::post('oauth', function()
{
return AuthorizationServer::performAccessTokenFlow();
});
This gives response as -
{
"error": "invalid_request",
"error_description": "The user credentials were incorrect."
}
I have inserted client_id and client_secret from mysql. Also seeded users table.
So, Why is this showing error in response? What am I doing wrong?