mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-17 11:55:38 +02:00
Add x-oauth-basic nosec annotation & address gosec unhandled errors
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user