Tech: nginx + oauth2_proxy
-
Install oauth2_proxy (https://github.com/bitly/oauth2_proxy):
$ go get github.com/bitly/oauth2_proxy
-
Set up your favourite OAuth2 provider (see https://github.com/bitly/oauth2_proxy for detailed instructions)
-
Run:
$ oauth2_proxy --client-id=CLIENT_ID --client-secret=CLIENT_SECRET --cookie-secret=COOKIE_SECRET --email-domain=pricingmonkey.com