
OAuth2 Proxy
oauth2-proxy · Login proxies
What is OAuth2 Proxy?
OAuth2 Proxy adds sign-in in front of web applications without changing them. It does not store users itself: it sends visitors to an OAuth2 or OIDC provider you already use, then lets them through. That makes it useful for internal tools that have no login of their own.
OAuth2 Proxy protects web applications with OAuth2 and OIDC sign-in. It can run as a standalone reverse proxy or as middleware in an existing proxy setup, redirecting visitors to a provider such as Google, Microsoft Entra ID or GitHub before they reach your app.
Core capabilities
- Runs as a standalone reverse proxy or as middleware in an existing setup.
- A generic OIDC client plus specific support for Google, Microsoft Entra ID, GitHub and login.gov.
- Can forward usernames and groups to your apps as HTTP headers.
Proxy or middleware
As a reverse proxy, it intercepts requests to your application and redirects users to the provider to sign in. As a middleware component, it plugs into an existing reverse proxy or load balancer and handles authentication for several applications.
- Reverse proxy
- Middleware
Providers
A generic OIDC client works with many providers, and specific implementations exist for Google, Microsoft Entra ID, GitHub, login.gov and others. Those implementations can extract more about the user, such as preferred usernames and groups.
- OAuth2
- OIDC
- Entra ID
Install and licence
It ships as compiled binaries for all major architectures and as container images. Nightly images are built from the master branch and should not be used in production. It is under the MIT licence.
- MIT
- Docker
- Binaries
Where it fits
Use cases
- 01
Protect an internal tool
Put OAuth2 Proxy in front of an app that has no login of its own, and people must sign in with your company's provider to reach it.
- 02
Share one login across several apps
Run it as middleware in your existing reverse proxy or load balancer to handle sign-in for multiple applications.
- 03
Tell your app who is signed in
Provider-specific support can pick up preferred usernames and groups, and pass them to your apps as HTTP headers.