Skip to content

Commit

Permalink
alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGedd committed Oct 11, 2024
1 parent 4a30f5b commit 732ba47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/api/middleware/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ func Auth(next http.Handler) http.Handler {
if valid := localAuth.ValidateSessionCookie(w, r); valid {
next.ServeHTTP(w, r)
}
} else if config.InClusterAuthEnabled {
if valid := clusterAuth.ValidateJWT(w, r); valid {
next.ServeHTTP(w, r)
}
}
} else if config.InClusterAuthEnabled {
if valid := clusterAuth.ValidateJWT(w, r); valid {
next.ServeHTTP(w, r)
}
}
next.ServeHTTP(w, r)
Expand Down

0 comments on commit 732ba47

Please sign in to comment.