Session value missing after redirect with django python-social-auth

前端 未结 3 554
一整个雨季
一整个雨季 2020-12-19 18:00

I am working on a django project using python-social-auth to do authentication with facebook. I am running the django server on localhost and have facebook set up with my ap

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-19 18:48

    I also had this problem. Solved it by adding "SOCIAL_AUTH_REDIRECT_IS_HTTPS = True" in my settings.py file, since my configuration is using nginx to redirect to HTTPS. I found this answer only by reading the documentation here: https://python-social-auth-docs.readthedocs.io/en/latest/configuration/settings.html

提交回复
热议问题