From c16bb2d7f0330049889f1b58f3108908027f75c2 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Fri, 22 May 2015 19:39:51 +0200 Subject: [PATCH] Redirect to login screen if GET on samlValidate --- cas_server/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cas_server/views.py b/cas_server/views.py index 40f4910..0f73cf9 100644 --- a/cas_server/views.py +++ b/cas_server/views.py @@ -252,3 +252,5 @@ def samlValidate(request): return render(request, "cas_server/samlValidateError.xml", {'code':'VersionMismatch'}, content_type="text/xml; charset=utf-8") except models.ServiceTicket.DoesNotExist: return render(request, "cas_server/samlValidateError.xml", {'code':'AuthnFailed'}, content_type="text/xml; charset=utf-8") + else: + return redirect("login")