Announcement Announcement Module
No announcement yet.
Loosing Authentication after Login Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hi Rob,

    The authentication is lost when I move to a different menu.

    I have the following in my log
    14:28:13,602  [,]  DEBUG [] Public object - authentication not attempted
    14:28:13,602  [,]  DEBUG [] /converge/javax.faces.resource/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png?ln=primefaces-blitzer reached end of additional filter chain; proceeding with original chain
    14:28:13,602  [,]  DEBUG [org.springframework.web.servlet.DispatcherServlet] DispatcherServlet with name 'Spring MVC Dispatcher Servlet' processing GET request for [/Booking/converge/javax.faces.resource/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png]
    14:28:13,602  [,]  DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] Matching patterns for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png] are [/javax.faces.resource/**]
    14:28:13,602  [,]  DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] URI Template variables for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png] are {}
    14:28:13,602  [,]  DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] Mapping [/javax.faces.resource/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png] to HandlerExecutionChain with handler [[email protected]2d] and 1 interceptor
    14:28:13,602  [,]  DEBUG [org.springframework.web.servlet.DispatcherServlet] Last-Modified value for [/Booking/converge/javax.faces.resource/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png] is: -1
    14:28:13,617  [,]  DEBUG [org.springframework.web.servlet.DispatcherServlet] Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Dispatcher Servlet': assuming HandlerAdapter completed request handling
    14:28:13,617  [,]  DEBUG [org.springframework.web.servlet.DispatcherServlet] Successfully completed request
    14:28:13,617  [,]  DEBUG [] Chain processed normally
    14:28:13,617  [,]  DEBUG [] SecurityContextHolder now cleared, as request processing completed
    Why is my SecurityContextHolder cleared?


    • #17
      The SecurityContextHolder is cleared after ever request to ensure you do not get a memory leak. It is repopulated by the SecurityContextRepository on the next request.