1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-12-01 22:51:45 +02:00

options bug fixes; set https cookies on by default

This commit is contained in:
Jehiah Czebotar
2014-11-09 22:21:46 -05:00
parent ba7aee91d6
commit 1f515eba3c
3 changed files with 12 additions and 2 deletions

View File

@@ -29,7 +29,12 @@ type Options struct {
}
func NewOptions() *Options {
return &Options{}
return &Options{
HttpAddress: "127.0.0.1:4180",
CookieHttpsOnly: true,
PassBasicAuth: true,
CookieExpire: time.Duration(168) * time.Hour,
}
}
func (o *Options) Validate() error {