You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ to validate accounts by email, domain or group.
17
17
18
18
## Installation
19
19
20
-
1. Download [Prebuilt Binary](https://github.com/bitly/oauth2_proxy/releases) (current release is `v1.1.1`) or build with `$ go get github.com/bitly/oauth2_proxy` which will put the binary in `$GOROOT/bin`
20
+
1. Download [Prebuilt Binary](https://github.com/bitly/oauth2_proxy/releases) (current release is `v2.0`) or build with `$ go get github.com/bitly/oauth2_proxy` which will put the binary in `$GOROOT/bin`
21
21
2. Select a Provider and Register an OAuth Application with a Provider
22
22
3. Configure OAuth2 Proxy using config file, command line options, or environment variables
23
23
4. Configure SSL or Deploy behind a SSL endpoint (example provided for Nginx)
@@ -99,8 +99,7 @@ Usage of oauth2_proxy:
99
99
-cookie-domain="": an optional cookie domain to force cookies to (ie: .yourcompany.com)*
100
100
-cookie-expire=168h0m0s: expire timeframe for cookie
101
101
-cookie-httponly=true: set HttpOnly cookie flag
102
-
-cookie-https-only=true: set secure (HTTPS) cookies (deprecated. use --cookie-secure setting)
103
-
-cookie-key="_oauth2proxy": the name of the cookie that the oauth_proxy creates
102
+
-cookie-key="_oauth2_proxy": the name of the cookie that the oauth_proxy creates
104
103
-cookie-refresh=0: refresh the cookie when less than this much time remains before expiration; 0 to disable
105
104
-cookie-secret="": the seed string for secure cookies
106
105
-cookie-secure=true: set secure (HTTPS) cookie flag
Copy file name to clipboardExpand all lines: main.go
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -46,12 +46,11 @@ func main() {
46
46
flagSet.String("custom-templates-dir", "", "path to custom html templates")
47
47
flagSet.String("proxy-prefix", "/oauth2", "the url root path that this proxy should be nested under (e.g. /<oauth2>/sign_in)")
48
48
49
-
flagSet.String("cookie-key", "_oauth2proxy", "the name of the cookie that the oauth_proxy creates")
49
+
flagSet.String("cookie-name", "_oauth2_proxy", "the name of the cookie that the oauth_proxy creates")
50
50
flagSet.String("cookie-secret", "", "the seed string for secure cookies")
51
51
flagSet.String("cookie-domain", "", "an optional cookie domain to force cookies to (ie: .yourcompany.com)*")
52
52
flagSet.Duration("cookie-expire", time.Duration(168)*time.Hour, "expire timeframe for cookie")
53
-
flagSet.Duration("cookie-refresh", time.Duration(0)*time.Hour, "refresh the cookie when less than this much time remains before expiration; 0 to disable")
54
-
flagSet.Bool("cookie-https-only", true, "set secure (HTTPS) cookies (deprecated. use --cookie-secure setting)")
53
+
flagSet.Duration("cookie-refresh", time.Duration(0), "refresh the cookie when less than this much time remains before expiration; 0 to disable")
0 commit comments