Announcement Announcement Module
Collapse
No announcement yet.
Spring Security Best Practice? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Security Best Practice?

    Hi

    My user has a property called failedLoginCount. This is incremented on a failed login and reset to 0 on a successful login.

    I have implemented an ApplicationListener for AuthenticationFailureBadCredentialsEvent that gets the username from the event, calls a service method to retrieve the user and updates its failed login count.

    I have also implemented a UserDetailsChecker for postAuthenticationChecks that resets the user's failed login count.

    Have I chosen the best places for implemeting this functionality?

    Thanks

    Dave.
    Last edited by harlander3000; Mar 27th, 2012, 05:14 AM.
Working...
X