oauth2-proxy
This is an example of how to run OAuth2 Proxy with the Google Auth Provider.
The first thing you need is a cookie secret for the OAUTH2_PROXY_COOKIE_SECRET
variable. You can generate it with:
Bash | |
---|---|
Note: command copied from https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview#generating-a-cookie-secret
Then you need the right values for the OAUTH2_PROXY_CLIENT_*
variables. See the official guide:
https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/google
Note: even if your Google Cloud App publishing status is set to
Testing
, you'll be able to use OAuth2 to authenticate all Google users
Finally:
Bash | |
---|---|
Then you can visit http://localhost:4180/
If you want to configure OAuth2 Proxy as a forwardauth middleware instead: