fix(server): basic auth check
This commit is contained in:
parent
d2f472a9cf
commit
0dd06d9afd
|
@ -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 == "" {
|
||||||
clientID, clientSecret, _ = gc.Request.BasicAuth()
|
clientID, clientSecret, _ = gc.Request.BasicAuth()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user