From f243c683e03a0e21c37ddd251da7741e30adc719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Michel?= Date: Tue, 30 Jul 2024 09:28:40 +0000 Subject: [PATCH] OIDC: fix PKCE random verifier generation --- auth/openid_connect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/openid_connect.go b/auth/openid_connect.go index e64cd5e..ae1db82 100644 --- a/auth/openid_connect.go +++ b/auth/openid_connect.go @@ -74,7 +74,7 @@ func Connect(ctx context.Context, oidcConfig *OIDCConfig, issuerURL string, doPK return "", fmt.Errorf("error when generating random verifier: %s", err.Error()) } - verifier := string(challengeVerifierBytes[:]) + verifier := oauth2.GenerateVerifier() tokenChannel := make(chan string) mux := http.NewServeMux()