【发布时间】:2017-03-18 19:45:23
【问题描述】:
第一次尝试将 oauth 与 python django 和 django-allauth 一起使用。我似乎无法进行登录。我可以达到要求您使用战网授权您的网站的地步,但是当您被重定向到回调 url 时,我只会得到以下信息:
{'code': 'unknown', 'provider': 'battlenet', 'exception': ProxyError(MaxRetryError("HTTPSConnectionPool(host='us.battle.net', port=443): Max retries exceeded with url: /oauth/token (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))",),)}
我已经在 dev.battle.net 中创建了我的应用程序,我已经将客户端密钥和密钥放在了我的 django-allauth 应用程序中,但我现在卡住了。
有人有这方面的经验吗?
【问题讨论】:
标签: django oauth-2.0 django-allauth