Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
L
loginservice
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • lanmw
  • loginservice
  • Repository

Switch branch/tag
  • loginservice
  • AGENTS.md
Find file
BlameHistoryPermalink
  • linxu's avatar
    feat(security): add brute-force login protection · 940c84c0
    Implement login attempt tracking and rate limiting to prevent
    brute-force attacks:
    
    - Add LoginAttemptService to track failed attempts per username
      with configurable max attempts (5), lockout duration (30min),
      and attempt window (15min)
    - Add LoginAttemptFilter to block requests before authentication
      when account is locked, returns HTTP 429
    - Add AuthenticationFailureListener to record failed attempts
    - Add AuthenticationSuccessListener to clear attempts on success
    - Update RESTAuthenticationFailureHandler to return generic
      'Invalid credentials' message to prevent username enumeration
    - Update SsoSecurityConfig to add filter before authentication
    - Add security.login.* configuration properties to application.yml
    
    The implementation uses in-memory tracking with automatic cleanup
    after lockout period expires.
    linxu authored May 08, 2026
    940c84c0
AGENTS.md 3.32 KB
EditWeb IDE
×

Replace AGENTS.md

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.