Tuesday, February 28, 2017

Laravel api: invalid_client

I'm trying to request a token in Laravel with Postman

But I can't get a response different than

{"error":"invalid_client","message":"Client authentication failed"}

Users in my application login with username/password :

LoginController.php contains:

public function username()
{
    return 'username';
}

And logging in on the frontend with username/password works great. So I tried both username and password as form-data, I also tried changing Body from x-www-form-urlencoded to raw and form-data both did not make a differennce. What am I doing wrong?

note: the appsecret is changed a bit to not have it public, in the real situation they match (copy pasted)




via Sven B

Advertisement