1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-15 00:15:00 +02:00

always set httponly (there is no good reason not to); simplify httponly and expire flags

This commit is contained in:
Jehiah Czebotar
2014-11-08 13:26:55 -05:00
parent 6cdf05e7f2
commit bc26835076
3 changed files with 13 additions and 22 deletions

View File

@ -9,6 +9,7 @@ import (
"net/url"
"os"
"strings"
"time"
)
const VERSION = "0.1.0"
@ -23,8 +24,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")
cookieExpire = flag.Duration("cookie-expire", time.Duration(168)*time.Hour, "expire timeframe for cookie")
cookieHttpsOnly = flag.Bool("cookie-https-only", false, "set HTTPS only cookie")
authenticatedEmailsFile = flag.String("authenticated-emails-file", "", "authenticate against emails via file (one per line)")
googleAppsDomains = StringArray{}
upstreams = StringArray{}