【发布时间】:2017-07-29 19:10:45
【问题描述】:
Good Day 有人用这种方法吗? https://laravel.com/docs/5.4/passport#client-credentials-grant-tokens
我尝试制作只有 client_id 和 client_secret 的注册 API,我希望返回作为访问令牌、刷新令牌、过期日期,但返回 www.url.com/oauth/token 是这个
{
"error": "unsupported_grant_type",
"message": "The authorization grant type is not supported by the authorization server.",
"hint": "Check the `grant_type` parameter"
}
任何人都可以帮助我..? 提前致谢
【问题讨论】:
标签: php laravel oauth-2.0 laravel-passport