Commit 7d6acf7b authored by Elena Grandi's avatar Elena Grandi

Fail with an error when a secret is not configured

parent 6cd1c7ad
......@@ -117,6 +117,8 @@ class Login(TemplateView):
if signing.HAVE_SIGNING:
from django.core.exceptions import ImproperlyConfigured
class AuthForward(TemplateView):
name = "auth_forward"
......@@ -136,6 +138,10 @@ if signing.HAVE_SIGNING:
self.log.error("auth token does not decoded: %s", e)
self.send_error(403)
return
except ImproperlyConfigured:
self.log.error("missing configuration: auth_forward_secret")
self.send_error(403)
return
# Get the redirect url
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment