ProxyGrantingTicket are never validate bis

This commit is contained in:
Valentin Samir 2015-06-04 16:48:11 +02:00
parent 60013fbfff
commit 02fd557216

View File

@ -330,7 +330,7 @@ class Ticket(models.Model):
def logout(self, request, session): def logout(self, request, session):
"""Send a SLO request to the ticket service""" """Send a SLO request to the ticket service"""
if self.validate and self.single_log_out: if (self.validate or isinstance(self, ProxyGrantingTicket)) and self.single_log_out:
xml = u"""<samlp:LogoutRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xml = u"""<samlp:LogoutRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
ID="%(id)s" Version="2.0" IssueInstant="%(datetime)s"> ID="%(id)s" Version="2.0" IssueInstant="%(datetime)s">
<saml:NameID xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"></saml:NameID> <saml:NameID xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"></saml:NameID>