laravel 护照不支持授权授予类型?
laravel passport doesnt support authorization grant type?
我在使用 laravel/passport 中的授权授予时遇到问题。我通常会收到此错误:
{"error":"unsupported_grant_type","message":"The authorization grant type is not supported by the authorization server.","hint":"Check the grant_type
parameter"}
首先它需要我登录页面,当我登录时它抛出上述错误。但是密码授予工作正常。
我使用以下方法创建了我的客户端:php artisan passport:client
尝试 body raw 和 Content-Type application/json
为了使用授权类型 "client_credentials",您需要使用 --client 选项创建您的客户端,如下所示:
php artisan passport:client --client
我在使用 laravel/passport 中的授权授予时遇到问题。我通常会收到此错误:
{"error":"unsupported_grant_type","message":"The authorization grant type is not supported by the authorization server.","hint":"Check the grant_type
parameter"}
首先它需要我登录页面,当我登录时它抛出上述错误。但是密码授予工作正常。
我使用以下方法创建了我的客户端:php artisan passport:client
尝试 body raw 和 Content-Type application/json
为了使用授权类型 "client_credentials",您需要使用 --client 选项创建您的客户端,如下所示:
php artisan passport:client --client