Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8104313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:48:23+00:00 2026-06-05T23:48:23+00:00

Does the Spring Security plugin for Grails support automatically locking an account after X

  • 0

Does the Spring Security plugin for Grails support automatically locking an account after X failed login attempts? The docs section for “Account Locking” only mentions that there is an accountLocked property.

If not out of the box, what would be the best way to implement it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:48:24+00:00Added an answer on June 5, 2026 at 11:48 pm

    No, it does not handle it for you. You would need to keep track of login attempts and then lock it yourself. The docs say as much here.

    You can use this functionality to manually lock a user’s account or
    expire the password, but you can automate the process. For example,
    use the Quartz plugin to periodically expire everyone’s password and
    force them to go to a page where they update it. Keep track of the
    date when users change their passwords and use a Quartz job to expire
    their passwords once the password is older than a fixed max age.

    I would use the Event features of the plugin and implement my own AuthenticationFailureEvent. Keep track of login attempts for a User and on the 3rd try, flip the lock bit. You may also want to implement your own AuthenticationSuccessEvent so that you can reset the bit if they get it before the 3rd try.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just added the spring security plugin to my grails application. I have a
I have an existing grails application that uses spring-security plugin for authentication. I would
I just got done walking through the install instructions on this page: http://grails.org/plugin/spring-security-facebook I
I am using Spring security core plugin . I want to test if the
I am writing a web app in Grails with the Acegi/Spring Security plug-in, and
I'm using Spring Security in Grails to restrict access to my controllers. I have
I am using the spring core security plugin and try to invoke the <sec:ifAnyGranted
I wanted to use MongoDB in my Grails application and also Spring Security. I
Does spring security have a way to prevent the last point below? I'm using
I'm looking for the best approach to achieve SPNEGO/Kerberos login for a spring-security application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.