feat: admin API for login history, locked accounts, unlock and settings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
6c6734baa3
commit
5ce684168a
7 files changed
+423
-2
No files matched your search
@@ -72,7 +72,7 @@ Full design with approaches and the user's approved calls: `docs/superpowers/spe
|
||||
- Logout records `LOGOUT` for the token's user.
|
||||
|
||||
6. **Client IP and user agent:**
|
||||
- The portal's login and logout routes send `X-Client-IP` (the first entry of the incoming `x-forwarded-for`, else empty) and `User-Agent` to mobile-api.
|
||||
- The portal's login and logout routes already send `X-Client-Ip` (the last `x-forwarded-for` hop, the one the ingress adds, else `x-real-ip`) and `X-Client-User-Agent` (the browser's user agent) to mobile-api, through `app/lib/server/clientContext.ts`, which was ported from babyboo.
|
||||
- mobile-api reads them from the request for the record only.
|
||||
- They are never used for any decision, since a client can forge them.
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ Design: `design.md`. All tasks run serially: each builds on the one before.
|
||||
- Scope: `solvway-mobile-api/src/**` (`AdminAuthController`, `AdminAuthenticationService`, request record, tests)
|
||||
- Verify: `mvn -T 1C -B -q -pl solvway-mobile-api -am verify`
|
||||
|
||||
- [ ] 3.3 `AdminLoginSecurityController` and service (design decision 8).
|
||||
- [x] 3.3 `AdminLoginSecurityController` and service (design decision 8).
|
||||
- **Tests first:**
|
||||
- class-level `@AdminModule("BO_LOGIN_SECURITY")`;
|
||||
- each endpoint maps its parameters;
|
||||
|
||||
Reference in new issue
Block a user