Commit c55193d
committed
Restore sessionId absence assertion in audit log helpers
Add WebAuthenticationDetails case to extractRemoteAddress switch so
TokenEndpointAuthenticationFilter's plain WebAuthenticationDetails
contributes its remote address to the audit origin instead of falling
into the default branch and emitting a spurious WARN per event.
Use Optional.of (not ofNullable) for WebAuthenticationDetails.getRemoteAddress()
which carries a non-null contract under JSpecify @NullMarked.
Restore .doesNotContain("sessionId") guards in assertLogMessage and
assertGroupMembershipLogMessage so regressions that leak session or
token fields into audit origins are caught by the test suite.1 parent 3f3f395 commit c55193d
1 file changed
Lines changed: 4 additions & 2 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1392 | 1392 | | |
1393 | 1393 | | |
1394 | 1394 | | |
1395 | | - | |
| 1395 | + | |
| 1396 | + | |
1396 | 1397 | | |
1397 | 1398 | | |
1398 | 1399 | | |
1399 | 1400 | | |
1400 | | - | |
| 1401 | + | |
| 1402 | + | |
1401 | 1403 | | |
1402 | 1404 | | |
1403 | 1405 | | |
| |||
0 commit comments