未授权客户端:客户端不允许授予类型“授权代码”。 Django -auth0 -login
Posted
技术标签:
【中文标题】未授权客户端:客户端不允许授予类型“授权代码”。 Django -auth0 -login【英文标题】:unauthorized_client: Grant type 'authorization_code' not allowed for the client. Django -auth0 -login 【发布时间】:2020-07-14 00:42:42 【问题描述】:我正在使用 django 开发一个应用程序,当我尝试使用 auth0 登录时,我得到:
"error":
"message": "Grant type 'authorization_code' not allowed for the client.",
"oauthError": "unauthorized_client",
"type": "oauth-authorization"
我已经配置了我的公钥和私钥、登录 url,并且在 auth0 中我已经配置了 url。
此外,我注意到错误可能出在我询问 access_token 时,因为我在访问 auth0.com/oauth/token 时遇到 http 403 错误。
同时服务器向我发送此“GET /complete/auth0?redirect_state=y8oPFziJ01BmdGaRbsRJZod3GZ4dP0hW HTTP/1.1”500 116725
【问题讨论】:
【参考方案1】:我遇到了同样的问题,我发现我必须使用“应用程序”页面上的“高级”设置(授予类型选项卡)授予更多权限:
【讨论】:
以上是关于未授权客户端:客户端不允许授予类型“授权代码”。 Django -auth0 -login的主要内容,如果未能解决你的问题,请参考以下文章
Spring Security OAuth 2.0 - 授权代码授予始终需要客户端密码
在 Angular 中实现 OAuth 2.0 授权代码授予
spotify web api授权码授予thelinmichael / spotify-web-api-java android