Skip to content

Commit 731dd49

Browse files
committed
Keep the last authority from the authenticating authority list
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent b9d4ef7 commit 731dd49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/satosa/backends/saml2.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,11 @@ def _translate_response(self, response, state):
404404
authn_context_ref, authenticating_authorities, authn_instant = next(
405405
iter(response.authn_info()), [None, None, None]
406406
)
407-
authenticating_authority = next(iter(authenticating_authorities), None)
407+
authenticating_authority = (
408+
authenticating_authorities[-1]
409+
if authenticating_authorities
410+
else None
411+
)
408412
auth_info = AuthenticationInformation(
409413
auth_class_ref=authn_context_ref,
410414
timestamp=authn_instant,

0 commit comments

Comments
 (0)