未经授权的客户端:客户端不允许授予类型“ authorization_code”。 Django -auth0-登录

时间:2020-04-02 05:41:56

标签: python django authorization auth0 unauthorized

我正在使用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 个答案:

答案 0 :(得分:1)

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

enter image description here