Files
zulip/zephyr/openid.py
Luke Faraone 0fe0cf0ffb [manual] Implement backend support for authenticating a user via Google.
This code adds a dependency on python-django-auth-openid, installable as
django-openid-auth from PyPI.

On prod, one needs to run a syncdb in order to create the required
tables. A database *migration* is not required, as these are new tables
only.

(imported from commit c902a0df8d589d93743b27e480154a04402b2c41)
2013-02-27 10:16:54 -05:00

9 lines
379 B
Python

# Defer importing until later to avoid circular imports
def openid_failure_handler(request, message, status=403, template_name=None, exception=None):
# We ignore template_name in this function
from django_openid_auth.views import default_render_failure
return default_render_failure(request, message, status=403, template_name="openid_error.html", exception=None)