@@ -55,6 +55,11 @@ func NewOauthProxy(opts *Options, validator func(string) bool) *OauthProxy {
55 redirectUrl.Path = oauthCallbackPath
55 redirectUrl.Path = oauthCallbackPath
57 log.Printf("OauthProxy configured for %s", opts.ClientID)
57 log.Printf("OauthProxy configured for %s", opts.ClientID)
58+ domain := opts.CookieDomain
62+ log.Printf("Cookie settings: https_only: %v expiry: %s domain:%s", opts.CookieHttpsOnly, opts.CookieExpire, domain)
58 return &OauthProxy{
63 return &OauthProxy{
59 CookieKey: "_oauthproxy",
64 CookieKey: "_oauthproxy",
60 CookieSeed: opts.CookieSecret,
65 CookieSeed: opts.CookieSecret,
@@ -229,10 +234,12 @@ func (p *OauthProxy) SignInPage(rw http.ResponseWriter, req *http.Request, code
229 SignInMessage string
234 SignInMessage string
230 Htpasswd bool
235 Htpasswd bool
231 Redirect string
236 Redirect string
233 SignInMessage: p.SignInMessage,
239 SignInMessage: p.SignInMessage,
234 Htpasswd: p.HtpasswdFile != nil,
240 Htpasswd: p.HtpasswdFile != nil,
235 Redirect: req.URL.RequestURI(),
241 Redirect: req.URL.RequestURI(),
237 templates.ExecuteTemplate(rw, "sign_in.html", t)
244 templates.ExecuteTemplate(rw, "sign_in.html", t)