Announcement Announcement Module
Collapse
No announcement yet.
HttpSessionContextIntegrationFilter Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HttpSessionContextIntegrationFilter

    Hello,

    After user logs in (gets 'principal', 'credentials', and 'autnorities') in the Authentication object, and if I am using the HttpSessionContextIntegrationFilter, how does this information persist? I assume that this filter is setting setAttribute in the session? Correct? If this is the case, what is the name for the key? Or is it a dynamic key?

  • #2
    Just need to look at the source for the class you named.

    Code:
    public static final String ACEGI_SECURITY_CONTEXT_KEY = "ACEGI_SECURITY_CONTEXT";
    
    httpSession.setAttribute(ACEGI_SECURITY_CONTEXT_KEY, SecurityContextHolder.getContext());

    Comment

    Working...
    X