Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 请求缺少必需的参数,包括无效的参数值_Php_Laravel_Laravel Passport - Fatal编程技术网

Php 请求缺少必需的参数,包括无效的参数值

Php 请求缺少必需的参数,包括无效的参数值,php,laravel,laravel-passport,Php,Laravel,Laravel Passport,错误:“无效的\u请求” 错误描述:“请求缺少必需的参数、包含无效的参数值、多次包含参数或格式不正确。” 提示:“检查code参数” 消息:“请求缺少必需的参数、包含无效的参数值、多次包含参数或格式不正确。” 如何在oauth中访问此令牌?对于令牌请求,首先需要从授权服务器获得授权代码,然后需要使用该代码才能获得访问令牌。 为了获得访问令牌,您必须包含以下参数 client_id Required. The client application's id. client_secret

错误:“无效的\u请求” 错误描述:“请求缺少必需的参数、包含无效的参数值、多次包含参数或格式不正确。” 提示:“检查
code
参数” 消息:“请求缺少必需的参数、包含无效的参数值、多次包含参数或格式不正确。”


如何在oauth中访问此令牌?

对于令牌请求,首先需要从授权服务器获得
授权代码,然后需要使用该代码才能获得
访问令牌。
为了获得访问令牌,您必须包含以下参数

client_id       Required. The client application's id.
client_secret   Required. The client application's client secret .
grant_type      Required. Must be set to authorization_code .
code            Required. The authorization code received from the authorization server.
redirect_uri    Required, Same uri which you've passed earlier during authorization code retrieval.

已在错误消息本身中声明。您在
authorization\u code
grant type请求中缺少参数
code
。缺少哪些参数?
client_id       Required. The client application's id.
client_secret   Required. The client application's client secret .
grant_type      Required. Must be set to authorization_code .
code            Required. The authorization code received from the authorization server.
redirect_uri    Required, Same uri which you've passed earlier during authorization code retrieval.