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

Fix DefaultSubjectProvider to support NameID formats other than “unspecified”

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.5, 3.1.2
    • Fix Version/s: 3.0.7, 3.1.4
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: