Skip to content

Commit

Permalink
removed token_validation_regex
Browse files Browse the repository at this point in the history
  • Loading branch information
itaynvn committed Feb 7, 2024
1 parent 99f3f38 commit d9c22b5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/desired/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit d9c22b5

Please sign in to comment.