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
Copy file name to clipboardexpand all lines: README.md
+9-13
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,11 @@
1
-
google_auth_proxy
1
+
oauth_proxy
2
2
=================
3
3
4
+
Note: this is a fork of bit.ly's google_oauth_proxy project that works for any oauth provider (where any has actually been tested on Github and Google, YMMV)
4
5
5
-
A reverse proxy that provides authentication using Google OAuth2 to validate
6
+
A reverse proxy that provides authentication using an oauth server to validate
6
7
individual accounts, or a whole google apps domain.
Copy file name to clipboardexpand all lines: main.go
+5-2
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,11 @@ var (
17
17
showVersion=flag.Bool("version", false, "print version string")
18
18
httpAddr=flag.String("http-address", "127.0.0.1:4180", "<addr>:<port> to listen on for HTTP clients")
19
19
redirectUrl=flag.String("redirect-url", "", "the OAuth Redirect URL. ie: \"https://internalapp.yourcompany.com/oauth2/callback\"")
20
-
clientID=flag.String("client-id", "", "the Google OAuth Client ID: ie: \"123456.apps.googleusercontent.com\"")
20
+
clientID=flag.String("client-id", "", "the Oauth Client ID: ie: \"123456.apps.googleusercontent.com\"")
21
21
clientSecret=flag.String("client-secret", "", "the OAuth Client Secret")
22
+
loginUrl=flag.String("login-url", "", "the OAuth Login URL")
23
+
redemptionUrl=flag.String("redemption-url", "", "the OAuth code redemption URL")
24
+
userInfoUrl=flag.String("user-info-url", "", "the OAuth user info URL")
22
25
passBasicAuth=flag.Bool("pass-basic-auth", true, "pass HTTP Basic Auth information to upstream")
23
26
htpasswdFile=flag.String("htpasswd-file", "", "additionally authenticate against a htpasswd file. Entries must be created with \"htpasswd -s\" for SHA encryption")
24
27
cookieSecret=flag.String("cookie-secret", "", "the seed string for secure cookies")
0 commit comments