feat: locked sign-in message and Change password dialog in the portal
mobile-api now records the browser user agent the portal forwards as X-Client-User-Agent instead of the portal server's own. 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
5ce684168a
commit
6598b58cb8
14 files changed
+364
-12
No files matched your search
+2
-1
@@ -76,7 +76,8 @@ class AdminAuthenticationServiceLoginSecurityTest {
|
||||
void record_sendsClientIpAndUserAgentFromRequest() {
|
||||
MockHttpServletRequest req = new MockHttpServletRequest();
|
||||
req.addHeader("X-Client-IP", "203.0.113.7");
|
||||
req.addHeader("User-Agent", "JUnit");
|
||||
req.addHeader("X-Client-User-Agent", "JUnit");
|
||||
req.addHeader("User-Agent", "node");
|
||||
RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(req));
|
||||
when(rest.postForEntity(any(String.class), eq(String.class), any())).thenReturn(ResponseEntity.ok(""));
|
||||
|
||||
|
||||
Reference in new issue
Block a user