Results 1 to 2 of 2

Thread: HttpSessionContextIntegrationFilter

  1. #1
    Join Date
    Oct 2006
    Posts
    17

    Default 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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());

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •