Add x-oauth-basic nosec annotation & address gosec unhandled errors

This commit is contained in:
Nick Meves
2020-08-10 15:15:16 -07:00
parent d69fd6af22
commit b6e78efc1e
3 changed files with 10 additions and 4 deletions
+1
View File
@@ -121,6 +121,7 @@ func (j *jwtSessionLoader) getBasicToken(token string) (string, error) {
// check user, user+password, or just password for a token
if j.jwtRegex.MatchString(user) {
// Support blank passwords or magic `x-oauth-basic` passwords - nothing else
/* #nosec G101 */
if password == "" || password == "x-oauth-basic" {
return user, nil
}