dasersoft
dasersoft

Reputation: 155

laravel passport doesnt support authorization grant type?

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

Answers (2)

Juha Vehnia
Juha Vehnia

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

Manuel Temple
Manuel Temple

Reputation: 763

try body raw and Content-Type application/json

Passport consume service

Upvotes: 10

Related Questions