Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6620

Fix DefaultSubjectProvider to support NameID formats other than “unspecified”

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.5, 3.1.2
    • 3.0.7, 3.1.4
    • None
    • None
    • Unknown

    Description

      The DefaultSubjectProvider does not set “subjectNameIDFormat" to formats other than unspecified. It needs to set the format correctly based on the type of principal.

      Refer to the screenshots below that contain an example of a possible fix for CXF versions: 3.0.6-3.1.X and CXF versions: 3.0.5 and below respectively:

      Screenshot from CXF 3.0.5 and below: Shows code from getSubject()
      Screenshot from CXF 3.0.6 +: Shows code from createSubjectBean()

      Attachments

        1. 0001-Fix-subjectNameIDFormat-to-not-always-assume-unspeci.patch
          10 kB
          Armand Roelens
        2. CXF306-312DefaultSubjectProviderFix.png
          172 kB
          Armand Roelens
        3. CXF305DefaultSubjectProviderFix.png
          98 kB
          Armand Roelens

        Activity

          People

            coheigea Colm O hEigeartaigh
            roelens8 Armand Roelens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: