However, they are optional for failed responses: eIDAS node accepts and provides light responses without these fields.
Changes to implement:
LightResponse.validate() - treat subject, subject_name_id_format, and level_of_assurance as optional if status.failure is True.
SAMLResponse.create_light_response() - stop providing dummy data for subject, subject_name_id_format, and level_of_assurance in case of failure responses.
These fields shouldn't be optional according to XML schema (eIDAS-Node National IdP and SP Integration Guide, Version 2.3, page 47):
<xs:element name="subject" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="subjectNameIdFormat" minOccurs="1" maxOccurs="1" />
<xs:element name="levelOfAssurance" minOccurs="1" maxOccurs="1" />
However, they are optional for failed responses: eIDAS node accepts and provides light responses without these fields.
Changes to implement:
LightResponse.validate()
- treatsubject
,subject_name_id_format
, andlevel_of_assurance
as optional ifstatus.failure
isTrue
.SAMLResponse.create_light_response()
- stop providing dummy data forsubject
,subject_name_id_format
, andlevel_of_assurance
in case of failure responses.