Merge pull request #293 from luclu7/main

fix: codeVerifier shouldn't be empty for basic auth
This commit is contained in:
Lakhan Samani 2022-11-17 05:44:01 +05:30 committed by GitHub
commit d2f472a9cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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