嗨我正在使用django all-auth https://django-allauth.readthedocs.io/en/latest/providers.html#slack与松弛。但是,我有两个问题。
1st: the redirect URL always goes to HTTP instead of HTTPS. E.g. I click on ***.ngrok.io/accounts/slack/login and then get redirected to https://***.slack.com/oauth?client_id=1737791866593.2107881969061&scope=identify&user_scope=&redirect_uri=http%3A%2F%2F***.ngrok.io%2Faccounts%2Fslack%2Flogin%2Fcallback%2F&state=ANmZKE1CMWq7&granular_bot_scope=0&single_channel=0&install_redirect=&tracked=1&response_type=code&team=
as you can see the redirect_uri is HTTP. How can I change this in django all-auth
?
2nd: After manually changing it I am still not able to login as I get the error below (see picture):
e.g. https://django-allauth.readthedocs.io/en/latest/providers.html#slack https://django-allauth.readthedocs.io/en/latest/providers.html#slack
您需要将以下 allauth 配置添加到您的settings.py
:
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)