Reputation: 155
I am having an issue using the authorization grant in laravel/passport. I usually get this error:
{"error":"unsupported_grant_type","message":"The authorization grant type is not supported by the authorization server.","hint":"Check the grant_type
parameter"}
First of all it takes me to login page, when i login it throws the above error. However the password grant works fine.
I created my client using: php artisan passport:client
Upvotes: 4
Views: 8649
Reputation: 1414
In order to use grant type "client_credentials" you need to create you client using --client option like below:
php artisan passport:client --client
Take a look at the Laravel documentation here
Upvotes: 0