We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d2130 commit 67be8aeCopy full SHA for 67be8ae
server/handlers/token.go
@@ -64,6 +64,12 @@ func TokenHandler() gin.HandlerFunc {
64
})
65
}
66
67
+ // check if clientID & clientSecret are present as part of
68
+ // authorization header with basic auth
69
+ if clientID == "" && clientSecret == "" && codeVerifier == "" {
70
+ clientID, clientSecret, _ = gc.Request.BasicAuth()
71
+ }
72
+
73
if clientID == "" {
74
log.Debug("Client ID is empty")
75
gc.JSON(http.StatusBadRequest, gin.H{
0 commit comments