diff --git a/oauthproxy.go b/oauthproxy.go index 90ec7dd7a..0697d4531 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -67,6 +67,7 @@ type OAuthProxy struct { compiledRegex []*regexp.Regexp templates *template.Template Footer string + EnableInsecure bool } type UpstreamProxy struct { @@ -202,6 +203,7 @@ func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy { CookieCipher: cipher, templates: loadTemplates(opts.CustomTemplatesDir), Footer: opts.Footer, + EnableInsecure: opts.EnableInsecure, } }