Php Laravel Passport客户端凭据
有人用这种方法吗? 我试图使注册API只包含client_id和client_secret,我希望返回作为访问令牌、刷新令牌、过期日期,但返回 www.url.com/oauth/token这是什么Php Laravel Passport客户端凭据,php,laravel,oauth-2.0,laravel-passport,Php,Laravel,Oauth 2.0,Laravel Passport,有人用这种方法吗? 我试图使注册API只包含client_id和client_secret,我希望返回作为访问令牌、刷新令牌、过期日期,但返回 www.url.com/oauth/token这是什么 { "error": "unsupported_grant_type", "message": "The authorization grant type is not supported by the authorization server.", "hint": "Ch
{
"error": "unsupported_grant_type",
"message": "The authorization grant type is not supported by the authorization server.",
"hint": "Check the `grant_type` parameter"
}
有人能帮我吗?
提前谢谢我知道这是旧的,我不知道你是否能用上。根据您对问题的描述,请求中可能缺少
grant\u type
参数。您需要grant\u type
、client\u id
和client\u secret
。当我省略参数时,我会得到相同的验证错误消息。如果您在使用示例中的代码,则需要'grant\u type'=>'client\u credentials'
。我知道这是旧的,我不知道它是否正常工作。根据您对问题的描述,请求中可能缺少grant\u type
参数。您需要grant\u type
、client\u id
和client\u secret
。当我省略参数时,我会得到相同的验证错误消息。如果您使用的是客户端凭据授权,那么如果您在示例中使用的是代码,则需要'grant\u type'=>'client\u credentials'