[ 
https://issues.apache.org/jira/browse/TOMEE-4682?focusedWorklogId=1042387&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1042387
 ]

ASF GitHub Bot logged work on TOMEE-4682:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Sep/26 14:14
            Start Date: 17/Sep/26 14:14
    Worklog Time Spent: 10m 
      Work Description: exabrial opened a new pull request, #2943:
URL: https://github.com/apache/tomee/pull/2943

   Additional Fixes for TOMEE-4682 - Do not create session if not needed
   
   I noticed that the current code always creates a session. I don't believe 
this is the correct behavior. 




Issue Time Tracking
-------------------

    Worklog Id:     (was: 1042387)
    Time Spent: 50m  (was: 40m)

> SecurityContext.authenticate() does not persist the session (bypasses 
> HttpServletRequest.authenticate())
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TOMEE-4682
>                 URL: https://issues.apache.org/jira/browse/TOMEE-4682
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 11.0.0-M1, 10.2.0
>            Reporter: Jonathan Gallimore
>            Assignee: Jonathan Gallimore
>            Priority: Major
>             Fix For: 11.0.0, 10.3.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> TomEESecurityContext.authenticate() invokes JASPIC directly via 
> ServerAuthContext.validateRequest() instead of delegating to 
> HttpServletRequest.authenticate(). This means the Servlet Container 
> processing, including the jakarta.servlet.http.registerSession handling that 
> @AutoApplySession relies on is not invoked.
> Consequently a caller authenticated by calling theĀ 
> SecurityContext.authenticate() API is not persisted to the HTTP session and 
> is anonymous on the following request.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to