diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-10-04 10:15:13 -0400 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-10-04 10:15:13 -0400 |
commit | a12cc2a979f5203e4c136684aa35741f4a73d1ce (patch) | |
tree | c55741de298f26c40057f6871633749281b85cad /src/saml2/client.py | |
parent | dfad000305c3e2897806301d2fd24ff8c049380b (diff) | |
download | pysaml2-a12cc2a979f5203e4c136684aa35741f4a73d1ce.tar.gz |
Fixed various errors.
Diffstat (limited to 'src/saml2/client.py')
-rw-r--r-- | src/saml2/client.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/saml2/client.py b/src/saml2/client.py index 5478c470..64871d62 100644 --- a/src/saml2/client.py +++ b/src/saml2/client.py @@ -206,9 +206,14 @@ class Saml2Client(Base): destination = destinations(srvs)[0] logger.info("destination to provider: %s" % destination) + try: + session_info = self.users.get_info_from(name_id, entity_id) + session_indexes = [session_info['session_index']] + except KeyError: + session_indexes = None req_id, request = self.create_logout_request( destination, entity_id, name_id=name_id, reason=reason, - expire=expire) + expire=expire, session_indexes=session_indexes) # to_sign = [] if binding.startswith("http://"): |