Laravel Passport-不支持授予类型("error": "unsupported_grant_type")

22 篇文章 0 订阅
19 篇文章 1 订阅

如果你在Laravel里使用Passport授权验证的时候出现:

{
	"error": "unsupported_grant_type",
	"error_description": "The authorization grant type is not supported by the authorization server.",
	"hint": "Check that all required parameters have been provided",
	"message": "The authorization grant type is not supported by the authorization server."
}

你可以使用Postman,并将所有参数都放在Body中,点击Send,获取token:
在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据提供的引用内容,显示的结果是{"error": "unsupported_grant_type", "error_description": "The authorization grant type is not supported"}。而根据引用,传递给API的参数是{"grant_type":"client_credentials", "client_id":"pGB2vIVTXn9ATexEsqMIDYO", "client_secret":"5yNZqWSIuj4PVRGdavjw1e5U3z9K6Kb"}。据引用,API的调用方式是通过POST请求发送JSON格式的数据。所以,根据提供的问题{"error":"unsupported_grant_type"},可以推断这个错误是由于使用了不支持的授权类型导致的。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [C++ opencv+百度OCR“error“: “unsupported_grant_type“, “error_description“: “The authorization ...](https://blog.csdn.net/dwf1354046363/article/details/119883652)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *3* [unsupported_grant_type](https://blog.csdn.net/dqchouyang/article/details/50543579)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值