You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andrei Shakirin (JIRA)" <ji...@apache.org> on 2013/07/17 17:44:48 UTC

[jira] [Resolved] (CXF-5126) Creation of SecurityContext from JAAS Subject causes incorrect Principal for Kerberos authentication

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

Andrei Shakirin resolved CXF-5126.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
                   2.7.6
    
> Creation of SecurityContext from JAAS Subject causes incorrect Principal for Kerberos authentication
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CXF-5126
>                 URL: https://issues.apache.org/jira/browse/CXF-5126
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS Security, WS-* Components
>            Reporter: Andrei Shakirin
>            Assignee: Andrei Shakirin
>             Fix For: 2.7.6, 3.0.0
>
>
> CXF-4931 introduced functionality to create SecurityContext from JAAS Subject if it is available.
> The problem is that in case of Kerberos authentication, STS validates client Kerberos ticket using own Kerberos account. In this case JAAS Subject will contain Principal from STS Kerberos account and ws-security Principal is client Kerberos Principal. SecurityContext must be initialized using client Kerberos Principal and not STS one.
> Moreover, sometimes JAAS Subject contains more than one Principal and it is very difficult to decide in CXF which one should be selected.
> Propose:
> 1. Check for Kerberos Principal and use ws-security Principal instead of JAAS Subject in this case.
> 2. Introduce property to switch-off using JAAS Subject Principal for SecurityContext.
> Regards,
> Andrei.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira