mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-14 04:07:46 +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:
@@ -957,8 +957,10 @@ func (s *AuthFlowBehaviourSuite) TestHandleCallback_NonceMismatch() {
|
||||
// Call handleCallback
|
||||
s.tOidc.handleCallback(rw2, req2, "https://example.com/callback")
|
||||
|
||||
// Should return internal server error due to nonce mismatch
|
||||
s.Equal(http.StatusInternalServerError, rw2.Code)
|
||||
// R161: nonce mismatch is a client-side authorization-request
|
||||
// integrity failure (same class as state/CSRF mismatch), so it returns
|
||||
// 400, not 500.
|
||||
s.Equal(http.StatusBadRequest, rw2.Code)
|
||||
}
|
||||
|
||||
// TestHandleCallback_UserNotAuthorized tests callback when user is not authorized
|
||||
|
||||
Reference in New Issue
Block a user