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

前端 未结 3 553
一整个雨季
一整个雨季 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:45

    This error was due to the session cookie not being saved over a non-https url. When testing on localhost with SESSION_COOKIE_SECURE set to True in django, the session cookies will not persist between redirect and you will get this error in any kind of page change where session would be checked.

    SESSION_COOKIE_SECURE=False for testing and it's all good

提交回复
热议问题