Compare commits
4 Commits
1.1.28-rc.
...
1.1.28-rc.
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0dd06d9afd | ||
![]() |
d2f472a9cf | ||
![]() |
4678193300 | ||
![]() |
67be8ae285 |
@@ -64,6 +64,12 @@ func TokenHandler() gin.HandlerFunc {
|
||||
})
|
||||
}
|
||||
|
||||
// check if clientID & clientSecret are present as part of
|
||||
// authorization header with basic auth
|
||||
if clientID == "" && clientSecret == "" {
|
||||
clientID, clientSecret, _ = gc.Request.BasicAuth()
|
||||
}
|
||||
|
||||
if clientID == "" {
|
||||
log.Debug("Client ID is empty")
|
||||
gc.JSON(http.StatusBadRequest, gin.H{
|
||||
|
Reference in New Issue
Block a user