This commit is contained in:
Tore S. Loenoey 2023-11-23 20:41:00 +01:00 committed by Tore Stendal Lønøy
parent 1d53984a88
commit 2be120664e
No known key found for this signature in database

View file

@ -565,7 +565,7 @@ func buildAuthLocation(input interface{}, globalExternalAuthURL string) string {
}
// shouldApplyGlobalAuth returns true only in case when ExternalAuth.URL is not set and
// GlobalExternalAuth is set, or if GlobalExternalAuth.DefaultEnable is true.
// GlobalExternalAuth is set, assuming global-auth-default-eable is true
func shouldApplyGlobalAuth(input interface{}, globalExternalAuthURL string) bool {
location, ok := input.(*ingress.Location)
if !ok {
@ -634,7 +634,6 @@ func buildAuthProxySetHeaders(headers map[string]string) []string {
}
func buildAuthUpstreamName(input interface{}, host string) string {
authPath := buildAuthLocation(input, "")
if authPath == "" || host == "" {
return ""