mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-21 04:57:48 +00:00
test: add R-round regression and security suite
- fail-on-old regression tests for every shipped fix (R-rounds) - fuzz targets (parseJWT, bearer), concurrency-stress, shuffle-flake guards - coverage-closing contract tests (health-check backend, TLS-posture reuse) - r154 ID-token fixture built from parts to avoid false-positive secret scan
This commit is contained in:
@@ -107,7 +107,7 @@ func TestVerifyTokenNoSelfReplayMarkAfterCacheEviction(t *testing.T) {
|
||||
if err := ts.tOidc.VerifyToken(token); err != nil {
|
||||
t.Fatalf("first verification should succeed: %v", err)
|
||||
}
|
||||
if !shardedReplayCache.Exists(jti) {
|
||||
if !shardedReplayCache.Exists(replayCacheKey(ts.tOidc.issuerURL, jti)) {
|
||||
t.Error("JTI should be recorded in the shared shardedReplayCache for cross-path replay detection")
|
||||
}
|
||||
// The per-instance tokenBlacklist must NOT be self-marked (this was the
|
||||
|
||||
Reference in New Issue
Block a user