Skip to content

Commit 7c82d89

Browse files
committed
Pass proper encryption keys when retrieving the subject NameID
This requires the latest pysaml2 to work properly, as older versions of get_subject do not accept the optional keys argument. To have this working without this changeset, one should define the pysaml2 configuration option `encryption_keypairs`. Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 031cd81 commit 7c82d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/satosa/backends/saml2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def _translate_response(self, response, state):
404404
)
405405

406406
# The SAML response may not include a NameID.
407-
subject = response.get_subject()
407+
subject = response.get_subject(keys=self.encryption_keys)
408408
name_id = subject.text if subject else None
409409
name_id_format = subject.format if subject else None
410410

0 commit comments

Comments
 (0)