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

Added cookie settings

This commit is contained in:
Igor Dolgiy
2014-06-19 18:50:43 +04:00
committed by Jehiah Czebotar
parent 23a89b06de
commit 6cdf05e7f2
2 changed files with 18 additions and 3 deletions

View File

@@ -23,6 +23,8 @@ var (
htpasswdFile = flag.String("htpasswd-file", "", "additionally authenticate against a htpasswd file. Entries must be created with \"htpasswd -s\" for SHA encryption")
cookieSecret = flag.String("cookie-secret", "", "the seed string for secure cookies")
cookieDomain = flag.String("cookie-domain", "", "an optional cookie domain to force cookies to")
cookieExpire = flag.Int("cookie-expire", 168 * 60, "expire time for cookie")
cookieSecure = flag.Bool("cookie-secure", false, "HTTPS only cookie")
authenticatedEmailsFile = flag.String("authenticated-emails-file", "", "authenticate against emails via file (one per line)")
googleAppsDomains = StringArray{}
upstreams = StringArray{}