fix: codeVerifier shouldn't be empty for basic auth

This commit is contained in:
Luclu7 2022-11-16 23:31:39 +01:00
parent 67be8ae285
commit 4678193300
No known key found for this signature in database
GPG Key ID: F157AA98AFB4C41B

View File

@ -66,7 +66,7 @@ func TokenHandler() gin.HandlerFunc {
// check if clientID & clientSecret are present as part of // check if clientID & clientSecret are present as part of
// authorization header with basic auth // authorization header with basic auth
if clientID == "" && clientSecret == "" && codeVerifier == "" { if clientID == "" && clientSecret == "" && codeVerifier != "" {
clientID, clientSecret, _ = gc.Request.BasicAuth() clientID, clientSecret, _ = gc.Request.BasicAuth()
} }