diff options
| author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-02-09 09:26:13 +0100 |
|---|---|---|
| committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-02-09 09:26:13 +0100 |
| commit | b490c3e99169830d83e8d8e4fabb96037e69f0cc (patch) | |
| tree | 0a0414e98619a29dc7cc4c3f046a2ffd1531a474 /src/saml2/client.py | |
| parent | 2b4da98c6d1f205d5ab40398283448312b556ead (diff) | |
| download | pysaml2-b490c3e99169830d83e8d8e4fabb96037e69f0cc.tar.gz | |
Reintroduce BINDING_SOAP for logout, why was it left out ? Testing ?
id -> sid
Diffstat (limited to 'src/saml2/client.py')
| -rw-r--r-- | src/saml2/client.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/saml2/client.py b/src/saml2/client.py index 0c311343..0e23fef2 100644 --- a/src/saml2/client.py +++ b/src/saml2/client.py @@ -130,7 +130,7 @@ class Saml2Client(Base): for entity_id in entity_ids: response = False - for binding in [#BINDING_SOAP, + for binding in [BINDING_SOAP, BINDING_HTTP_POST, BINDING_HTTP_REDIRECT]: srvs = self.metadata.single_logout_service(entity_id, binding, @@ -183,7 +183,7 @@ class Saml2Client(Base): "not_on_of_after": expire, "sign": sign} - responses[entity_id] = http_info + responses[entity_id] = (binding, http_info) not_done.remove(entity_id) # only try one binding @@ -383,10 +383,8 @@ class Saml2Client(Base): elif binding == BINDING_HTTP_POST: mid = sid() query = self.create_attribute_query(destination, subject_id, - attribute, sp_name_qualifier, - name_qualifier, nameid_format, - mid, consent, extensions, - sign) + attribute, mid, consent, + extensions, sign) self.state[query.id] = {"entity_id": entityid, "operation": "AttributeQuery", "subject_id": subject_id, @@ -395,4 +393,5 @@ class Saml2Client(Base): return self.apply_binding(binding,"%s" % query, destination, relay_state) else: - raise Exception("Unsupported binding")
\ No newline at end of file + raise Exception("Unsupported binding") + |
