From d9c22b534669548c1d229cb1bc2c5b6c98bad06b Mon Sep 17 00:00:00 2001 From: itaynvn Date: Wed, 7 Feb 2024 15:42:51 +0200 Subject: [PATCH] removed token_validation_regex --- pkg/desired/state.go | 11 ----------- 1 file changed, 11 deletions(-) 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),