mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-24 05:47:56 +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:
@@ -60,7 +60,7 @@ func TestLenientAudienceRequiresUnexpiredAccessToken(t *testing.T) {
|
||||
accessToken, err := createTestJWT(ts.rsaPrivateKey, "RS256", "test-key-id", map[string]interface{}{
|
||||
"iss": "https://test-issuer.com",
|
||||
"aud": []interface{}{"https://other-api.example.com"}, // wrong audience
|
||||
"exp": float64(time.Now().Add(1 * time.Hour).Unix()), // still valid
|
||||
"exp": float64(time.Now().Add(1 * time.Hour).Unix()), // still valid
|
||||
"iat": float64(time.Now().Unix()),
|
||||
"sub": "test-user",
|
||||
"scope": "openid profile email",
|
||||
|
||||
Reference in New Issue
Block a user