python - 未经授权的客户端 : Grant type 'authorization_code' not allowed for the client. Django -auth0 -login

标签 python django authorization auth0 unauthorized

我正在用 django 开发一个应用程序,当我尝试使用 auth0 登录时,我得到:

"error": {
  "message": "Grant type 'authorization_code' not allowed for the client.",
  "oauthError": "unauthorized_client",
  "type": "oauth-authorization"
}

我已经配置了我的公钥和私钥、登录网址,并且在 auth0 中我已经配置了网址。

此外,我注意到错误可能是在我询问 access_token 时,因为我在访问 auth0.com/oauth/token 时遇到了 http 403 错误。

同时服务器向我发送了这个“GET/complete/auth0?redirect_state=y8oPFziJ01BmdGaRbsRJZod3GZ4dP0hW HTTP/1.1”500 116725

最佳答案

我遇到了同样的问题,我发现我必须使用“应用程序”页面(“授予类型”选项卡)上的“高级”设置授予更多权限:
enter image description here

关于python - 未经授权的客户端 : Grant type 'authorization_code' not allowed for the client. Django -auth0 -login,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60984893/

相关文章:

python - 比较两个包含数字的 python 字符串

django - 模型和字段验证中的 clean() 方法

authorization - 流口水 6.0 |工作台身份验证 |带数据库的 JAAS |未经授权

Angular - 错误引用错误 : config is not defined

python - 来自 python 的 Docker

python - SQLAlchemy 与连接 (python)

python - 计算范围内的平方数(python)

python - 将 Django 命令分组到同一应用程序内的文件夹中

Django Querysets - 在 .extra() 之后使用 .annotate()

google-apps-script - 无法授予 Google App 脚本授权或许可