Skip to content

Commit f52eca2

Browse files
use nooa from subjectConfirmationData instead of Condition
1 parent 774e85d commit f52eca2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

djangosaml2/views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,12 @@ def post(self, request, attribute_mapping=None, create_unknown_user=None):
419419

420420
# authenticate the remote user
421421
session_info = response.session_info()
422+
423+
# assertion_info
422424
assertion = response.assertion
423-
assertion_info = {'assertion_id': assertion.id, 'not_on_or_after': assertion.conditions.not_on_or_after if assertion.conditions else None}
425+
subject_confirmation_data = [sc.subject_confirmation_data for sc in assertion.subject.subject_confirmation]
426+
subject_nooa = [scd.not_on_or_after if scd else None for scd in subject_confirmation_data]
427+
assertion_info = {'assertion_id': assertion.id, 'not_on_or_after': subject_nooa}
424428

425429
if callable(attribute_mapping):
426430
attribute_mapping = attribute_mapping()

0 commit comments

Comments
 (0)