@@ -83,6 +83,8 @@ Java Spring Boot SSO (Single Sign-On) authentication service. Part of the KeyMob
...
@@ -83,6 +83,8 @@ Java Spring Boot SSO (Single Sign-On) authentication service. Part of the KeyMob
- Session info endpoint: `/sessionInfo`
- Session info endpoint: `/sessionInfo`
- Language endpoint: `/lang`
- Language endpoint: `/lang`
- Login info endpoint: `/loginInfo?userId=` (admin only) - accepts multiple user ids (repeated param or comma-separated), returns last login time, current locked state/lock time per user
- Login info endpoint: `/loginInfo?userId=` (admin only) - accepts multiple user ids (repeated param or comma-separated), returns last login time, current locked state/lock time per user
- Login attempts/locks are keyed by user id (resolved via `LoginAttemptService.resolveKey`); for unknown usernames the submitted username is used as a fallback key
- Principal format: `username:userId:displayName` (colon-delimited)
- Principal format: `username:userId:displayName` (colon-delimited)
LogManager.logWarning(LogConstants.CTX_AUDIT,"Blocked login attempt for locked user: "+username);
LogManager.logWarning(LogConstants.CTX_AUDIT,"Blocked login attempt for locked user: "+username);
writeErrorResponse(response,HttpStatus.TOO_MANY_REQUESTS,"Account is temporarily locked due to too many failed login attempts. Please try again later.","账户因多次登录失败被暂时锁定,请稍后再试");
writeErrorResponse(response,HttpStatus.TOO_MANY_REQUESTS,"Account is temporarily locked due to too many failed login attempts. Please try again later.","账户因多次登录失败被暂时锁定,请稍后再试");