AuthenticationSuccessEvent « Security « Spring Q&A





1. SpringSecurity3.0 AuthenticationSuccessEvent cannot be detected    stackoverflow.com

I want to prepare some data after user login system. After some google, I implemented a ApplicationListener to listen AuthenticationSuccessEvent: import org.springframework.context.ApplicationListener; import org.springframework.security.authentication.event.AuthenticationSuccessEvent; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Component; @Component public class MyApplicationListener implements ...

2. Incorrect authentication detail sessionId in AuthenticationSuccessEvent event.    forum.springsource.org

Incorrect authentication detail sessionId in AuthenticationSuccessEvent event. Hi, in my app, using SpringSecurity 3.0.5, I need to log the user ip address and the session id for any success login action. ...

3. AuthenticationSuccessEvent published even if max-session is reached    forum.springsource.org

AuthenticationSuccessEvent published even if max-session is reached Hi everyone, I am currently logging security events in a database. I am faced with the following issue. - log in once -> no ...

4. events propagation (new AuthenticationSuccessEvent)    forum.springsource.org

Hello. I'm using Acegi 0.8.2 and in order to detect when a user is logs in and out I implemented a listener for AuthenticationSuccessEvent and HttpSession destroy event. As a provider ...

5. AuthenticationSuccessEvent and HttpSession    forum.springsource.org

How would I trap an AuthenticationSuccessEvent while having access to the HttpSession? I want to populate the HttpSession with stuff at the time of sucessful login. Thanks! jon

6. AuthorizedEvent vs AuthenticationSuccessEvent    forum.springsource.org

AuthorizedEvent vs AuthenticationSuccessEvent I expected this to be in the FAQ, but it is not. I do not believe I correctly understand the difference between these two events. I would guess ...

7. doing sophisticated stuff after an AuthenticationSuccessEvent?    forum.springsource.org

I have code like this: Code: public void onApplicationEvent(ApplicationEvent event) { if (event instanceof AuthenticationSuccessEvent) { AuthenticationSuccessEvent success = (AuthenticationSuccessEvent)event; PersonUserDetails userDetails = (PersonUserDetails)success.getAuthentication().getPrincipal(); } } now I would like to ...

8. HttpServletRequest from AuthenticationSuccessEvent    forum.springsource.org

9. Cannot receive AuthenticationSuccessEvent    forum.springsource.org

Cannot receive AuthenticationSuccessEvent hi there i got a problem with event listener when user login i had my own AuthorizeListener implements ApplicationListener and everything is fine but i couldnt receive authenticationSuccessEvent ...





10. AuthenticationSuccessEvent not published for anonymous user    forum.springsource.org

Best Practice for login / logout detection Hello community, I started to pull login / logout logic into my user object (authentication, logging, etc.). Therefore I wrote my own AnonymousProcessingFilter that ...

11. Security 3.0.2 Looping AuthenticationSuccessEvent    forum.springsource.org

Security 3.0.2 Looping AuthenticationSuccessEvent I am trying to upgrade an application from Spring Security 2.0 to 3.0.2. For testing purposes, I am just trying to get the basic authentication (In Memory) ...

12. setAuthentication() and AuthenticationSuccessEvent ?    forum.springsource.org

I am able to programmatically validate a user and then 'login' with setAuthentication() Code: protected void setAuthenticated(UserDetails ud) { UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(ud,ud.getPassword(),ud.getAuthorities()); SecurityContextHolder.getContext().setAuthentication(token); } How would I extend this ...