gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 23:08:05 25 4
gpt4 key购买 nike

我正在用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com