Skip to content

Commit

Permalink
OIDC: fix PKCE random verifier generation (#149)
Browse files Browse the repository at this point in the history
fix a bug in the PKCE process of OpenID Connect
The generated verifier had an invalid format.
  • Loading branch information
francoismichel authored Jul 30, 2024
1 parent 20f2894 commit f5d1610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/openid_connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f5d1610

Please sign in to comment.