diff --git a/pkg/desired/state.go b/pkg/desired/state.go index a16bc9c9..dea73d43 100644 --- a/pkg/desired/state.go +++ b/pkg/desired/state.go @@ -234,22 +234,11 @@ func cnvrgTemplateFuncs() map[string]interface{} { } emailsDomains += "]" - tokenValidationRegexes := "[" - for i, regex := range tokenValidationRegex { - if i == (len(tokenValidationRegex) - 1) { - tokenValidationRegexes += fmt.Sprintf(`"%v"`, regex) - } else { - tokenValidationRegexes += fmt.Sprintf(`"%v", `, regex) - } - } - tokenValidationRegexes += "]" - proxyConf := []string{ fmt.Sprintf(`provider = "%v"`, provider), fmt.Sprintf(`http_address = "0.0.0.0:%d"`, proxyPort), fmt.Sprintf(`redirect_url = "%v"`, getSSORedirectUrl(obj, svc)), fmt.Sprintf("skip_auth_regex = %v", skipAuthUrls), - fmt.Sprintf("skip_auth_routes = [\"!=^\\/api\"]"), fmt.Sprintf(`email_domains = %v`, emailsDomains), fmt.Sprintf(`client_id = "%v"`, sso.ClientID), fmt.Sprintf(`client_secret = "%v"`, sso.ClientSecret),