fix auth-proxy, allow global tenant with any url
@@ -147,7 +147,6 @@ func redirectToAuthProxyUrl(c echo.Context) error {
// if the upstream is kalm api, get tenant from domain.
// otherwise, use tenant in header.
- if tenantInHeader == "" || tenantInHeader == "global" {
lowercaseHost := strings.ToLower(c.Request().Host)
// check if it is requesting kalm resources
@@ -159,7 +158,6 @@ func redirectToAuthProxyUrl(c echo.Context) error {
if len(parts) >= 4 {
tenantName = parts[len(parts)-4]
}
- }
} else {
tenantName = tenantInHeader
}
