summaryrefslogtreecommitdiff
path: root/src/saml2/response.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2015-10-04 10:15:13 -0400
committerRoland Hedberg <roland.hedberg@adm.umu.se>2015-10-04 10:15:13 -0400
commita12cc2a979f5203e4c136684aa35741f4a73d1ce (patch)
treec55741de298f26c40057f6871633749281b85cad /src/saml2/response.py
parentdfad000305c3e2897806301d2fd24ff8c049380b (diff)
downloadpysaml2-a12cc2a979f5203e4c136684aa35741f4a73d1ce.tar.gz
Fixed various errors.
Diffstat (limited to 'src/saml2/response.py')
-rw-r--r--src/saml2/response.py4
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):