mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-12 04:04:26 +00:00
test: mark synthetic PKCE verifier with trufflehog:ignore
Quiet the Lob detector's false positive on the fake test-only code_verifier, matching the repo's existing // trufflehog:ignore convention in token_test.go. Local trufflehog filesystem scan is now 0 verified / 0 unverified.
This commit is contained in:
@@ -79,7 +79,7 @@ func TestExchangeCodeForToken_Comprehensive(t *testing.T) {
|
|||||||
grantType: "authorization_code",
|
grantType: "authorization_code",
|
||||||
code: "valid_auth_code_pkce",
|
code: "valid_auth_code_pkce",
|
||||||
redirectURL: "https://example.com/callback",
|
redirectURL: "https://example.com/callback",
|
||||||
codeVerifier: "test_verifier_string_that_is_long_enough",
|
codeVerifier: "test_verifier_string_that_is_long_enough", // trufflehog:ignore synthetic PKCE test value
|
||||||
setupMock: func(server *httptest.Server) *TraefikOidc {
|
setupMock: func(server *httptest.Server) *TraefikOidc {
|
||||||
return &TraefikOidc{
|
return &TraefikOidc{
|
||||||
tokenURL: server.URL + "/token",
|
tokenURL: server.URL + "/token",
|
||||||
|
|||||||
Reference in New Issue
Block a user