cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6072) jaxrs securityContext.getUserPrincipal is broken if login is done during the request
Date Thu, 30 Oct 2014 13:26:34 GMT

    [ https://issues.apache.org/jira/browse/CXF-6072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190048#comment-14190048
] 

Sergey Beryozkin commented on CXF-6072:
---------------------------------------

Cool, I did not even know HttpServletRequest.login(name, password) method existed :-)

> jaxrs securityContext.getUserPrincipal is broken if login is done during the request
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-6072
>                 URL: https://issues.apache.org/jira/browse/CXF-6072
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>            Assignee: Sergey Beryozkin
>             Fix For: 3.1.0, 3.0.3, 2.7.14
>
>
> Hi
> tested on last 2.6 release and didn't take time to check on 3. but I guess it is the
same:
> I call a rest endpoint, in my business I login(user, pass) from the request (http) then
from the security context I get the principal -> null, if I get it fro mthe request it
is avlued. It is cause org.apache.cxf.transport.http.AbstractHTTPDestination#setupMessage(org.apache.cxf.message.Message,
javax.servlet.ServletConfig, javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) stores the principal for the request but it evaluates
it too early.
> Why not keeping the delegation to the http request?



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

Mime
View raw message