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/response.py | |
parent | dfad000305c3e2897806301d2fd24ff8c049380b (diff) | |
download | pysaml2-a12cc2a979f5203e4c136684aa35741f4a73d1ce.tar.gz |
Fixed various errors.
Diffstat (limited to 'src/saml2/response.py')
-rw-r--r-- | src/saml2/response.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py index 3195f235..be9f1fa7 100644 --- a/src/saml2/response.py +++ b/src/saml2/response.py @@ -1036,9 +1036,11 @@ class AuthnResponse(StatusResponse): "issuer": self.issuer(), "not_on_or_after": nooa, "authz_decision_info": self.authz_decision_info()} else: + authn_statement = self.assertion.authn_statement[0] return {"ava": self.ava, "name_id": self.name_id, "came_from": self.came_from, "issuer": self.issuer(), - "not_on_or_after": nooa, "authn_info": self.authn_info()} + "not_on_or_after": nooa, "authn_info": self.authn_info(), + "session_index": authn_statement.session_index} def __str__(self): if not isinstance(self.xmlstr, six.string_types): |