Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-297

Subject Bean is missing NameID Format variable

    XMLWordPrintableJSON

Details

    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>

      Attachments

        1. Saml2ComponentBuilder.java
          28 kB
          Srinivasa Kukatla
        2. SubjectBean.java
          8 kB
          Srinivasa Kukatla

        Activity

          People

            coheigea Colm O hEigeartaigh
            skukatla Srinivasa Kukatla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: