scipost.sso module

scipost.sso.discourse(request)[source]

Callback for the Discourse instance at disc.scipost.org.

Make sure to set DISCOURSE_BASE_URL and DISCOURSE_SSO_SECRET in settings.py

Taken from https://gist.github.com/alee/3c6161809ef78966454e434a8ed350d1

Code was originally adapted from https://meta.discourse.org/t/sso-example-for-django/14258 but that discussion topic has been removed.