[ 
https://issues.apache.org/jira/browse/CXF-6620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Armand Roelens updated CXF-6620:
--------------------------------
    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()


  was:
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 also 3.0.5 and below:

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



> Fix DefaultSubjectProvider to support NameID formats other than “unspecified”
> -----------------------------------------------------------------------------
>
>                 Key: CXF-6620
>                 URL: https://issues.apache.org/jira/browse/CXF-6620
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.0.5, 3.1.2
>            Reporter: Armand Roelens
>         Attachments: CXF305DefaultSubjectProviderFix.png, 
> CXF306-312DefaultSubjectProviderFix.png
>
>
> 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()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to