无法访问laravel护照中的客户端

时间:2019-03-29 14:11:28

标签: laravel oauth-2.0 access-token laravel-passport

我想注册用户并获取访问令牌。但是,当我向http://localhost:8000/oauth/token发送带有参数的请求后显示

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

此请求的json数据

{
"grant_type" : "password",
"client_id" : "2",
"client_secret" : "nTyAjzNIOE8AJuHC3gIoIXR6yK2HtmTX1IgTdIR3",
"username" : "monu111@gmail.com",
"password" : "password",
"scope" : "*"  }

这是我的outh_client表数据

enter image description here

我很困惑我的问题在哪里...我正在使用laravel 5.4和护照版本4.0

0 个答案:

没有答案