proxy: fix empty regex field being interpreted as regex
This commit is contained in:
parent
c25eda63ba
commit
c1051059f4
|
@ -51,8 +51,10 @@ func (pb *providerBundle) prepareOpts(provider *models.ProxyOutpostConfig) *opti
|
||||||
providerOpts.OIDCJwksURL = *provider.OidcConfiguration.JwksURI
|
providerOpts.OIDCJwksURL = *provider.OidcConfiguration.JwksURI
|
||||||
providerOpts.ProfileURL = *provider.OidcConfiguration.UserinfoEndpoint
|
providerOpts.ProfileURL = *provider.OidcConfiguration.UserinfoEndpoint
|
||||||
|
|
||||||
|
if provider.SkipPathRegex != "" {
|
||||||
skipRegexes := strings.Split(provider.SkipPathRegex, "\n")
|
skipRegexes := strings.Split(provider.SkipPathRegex, "\n")
|
||||||
providerOpts.SkipAuthRegex = skipRegexes
|
providerOpts.SkipAuthRegex = skipRegexes
|
||||||
|
}
|
||||||
|
|
||||||
providerOpts.UpstreamServers = []options.Upstream{
|
providerOpts.UpstreamServers = []options.Upstream{
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue