From f1fbdd36538c7e9bbdc21dcaf034d94e18259444 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Thu, 4 Jun 2015 14:39:36 +0200 Subject: [PATCH] it seems that SLO requests need to be in logoutRequest POST params cf phpCAS official implementation --- cas_server/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_server/models.py b/cas_server/models.py index 2fa41e6..be48ac6 100644 --- a/cas_server/models.py +++ b/cas_server/models.py @@ -345,7 +345,7 @@ class Ticket(models.Model): try: return session.post( self.service.encode('utf-8'), - data=xml.encode('utf-8'), + data={'logoutRequest':xml.encode('utf-8')}, headers=headers ) except Exception as error: