From 19cf8e3f6ea48cb1506fb1e0ba5172c17b9384de Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Wed, 29 Sep 2010 13:08:32 +0200 Subject: [PATCH] Returning a LogoutResponse instead of a Response --- src/saml2/server.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/saml2/server.py b/src/saml2/server.py index 8ae1e14..3de50f5 100644 --- a/src/saml2/server.py +++ b/src/saml2/server.py @@ -28,7 +28,7 @@ from saml2 import soap from saml2 import request from saml2.s_utils import sid -from saml2.s_utils import response_factory +from saml2.s_utils import response_factory, logoutresponse_factory from saml2.s_utils import MissingValue from saml2.s_utils import success_status_factory from saml2.s_utils import OtherError @@ -499,8 +499,10 @@ class Server(object): if not status: status = success_status_factory() + + return logoutresponse_factory( + issuer = self.issuer(), + in_response_to = in_response_to, + status = status, + ) - return self._response( - in_response_to, # in_response_to - status = status, - )