Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6
Description
As per the saml2core specification, we have the following for the Subject NameID:
<element name="NameID" type="saml:NameIDType" />
<complexType name="NameIDType">
<simpleContent>
<extension base="string">
<attributeGroup ref="saml:IDNameQualifiers" />
<attribute name="Format" type="anyURI" use="optional" />
<attribute name="SPProvidedID" type="string" use="optional" />
</extension>
</simpleContent>
</complexType>
NameID has the optional Format Attribute, we can specify different NameID Formats such as email, X509 etc. That is missing in the subject Bean.
Please find the updated Subject Bean, added a field for the NameIDFormat.
Example :
<saml2:Subject>
<saml2:NameID
Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">s@abc.com</saml2:NameID>
<saml2:SubjectConfirmation
</saml2:SubjectConfirmation>
</saml2:Subject>