sharing sessions

9 views
Skip to first unread message

Andy

unread,
Mar 19, 2018, 7:39:16 AM3/19/18
to Django users
I want to have some sort of SingleSignOn for my application and a forum based on askbot (also Django).
I built a REST API to get the session from my application and want to replicated and also get the user from inside askbot.

This kind of works, but i cannot decode the session inside the forum.
AFAIK Django uses the settings.SECRET_KEY for jobs like this. I set the same key in both applications, but as soon as Django tries to validated the sessions data with its hash, it will compute a wrong hash and discard the data.

So whats needed for 2 Django apps to actually be able to have the same hashing methods?

Bot applications are powerd by Django 1.11.11 and have the same secret key, but it looks like im missing another ingredient.

Andy

unread,
Mar 19, 2018, 11:08:15 AM3/19/18
to Django users
okay, i made it work like it already should have before my posting .. if only there was no typo in my secret key and askbot was not setting the session serializer to PickleSerializer

Works great now!
Reply all
Reply to author
Forward
0 new messages