oauth2-proxy /oauth2-proxy
A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers.
★ 15,375⑂ 2,269👁 104⑃ 1,615● 1,970▤ 45
+4
Daily
15,375
stars
2,269
forks
104
watchers
1,615
prs
1,970
issues
45
releases
README
!OAuth2 Proxy OAuth2 Proxy is a flexible, open-source tool that can act as either a standalone reverse proxy or a middleware component integrated into existing reverse proxy or load balancer setups. It provides a simple and secure way to protect your web applications with OAuth2 / OIDC authentication. As a reverse proxy, it intercepts requests to your application and redirects users to an OAuth2 provider for authentication. As a middleware, it can be seamlessly integrated into your existing infrastructure to handle authentication for multiple applications. OAuth2 Proxy supports a lot of OAuth2 as well as OIDC providers. Either through a generic OIDC client or a specific implementation for Google, Microsoft Entra ID, GitHub, login.gov and others. Through specialised provider implementations OAuth2 Proxy can extract more details about the user like preferred usernames and groups. Those details can then be forwarded as HTTP headers to your upstream applications. !Simplified Architecture Get Started OAuth2 Proxy's Installation Docs cover how to install and configure your setup. Additionally you can take a further look at the example setup files. Releases Binaries We publish OAuth2 Proxy as compiled binaries on GitHub for all major architectures as well as more exotic ones like ppc64le as well as s390x. Check out the latest release. Images From v7.6.0 and up the base image has been changed from Alpine to GoogleContainerTools/distroless. This image comes with even fewer installed dependencies and thus should improve security. The image therefore is also slightly smaller than Alpine. For debugging purposes (and those who really need it. e.g. armv6) we still provide images based on Alpine. The tags of these images are suffixed with -alpine. Since 2023-11-18 we build nightly images directly from the master branch and provide them at quay.io/oauth2-proxy/oauth2-proxy-nightly. These images are considered unstable and therefore should NOT be used for production purposes unless you know what you're doing. Sponsors Would you like to sponsor the project then please contact us at [email protected] !SAP SAP Open Source Program Former Sponsors !Microsoft Microsoft Azure credits for open source projects Getting Involved Join the oauth2-proxy Slack channel to chat with other users of OAuth2 Proxy or reach out to the maintainers directly. Use the public invite link to get an invite for the CNCF space. OAuth2 Proxy is a community-driven project. We rely on the contribut️ions of our users to continually improve it. While review times can vary, we appreciate your patience and understanding. As a volunteer-driven project, we strive to keep this project stable and might take longer to merge changes. If you want to contribute to the project. Please see our Contributing guide. Thanks to all the people who already contributed ❤ Made with contrib.rocks. Security If you believe you have found a vulnerability within OAuth2 Proxy
Top issues
#926Enable multiple providers86 comments · 2020-11-21#1224[Feature Request] Backchannel sign-out endpoint to invalidate session55 comments · 2021-06-01#532[RFC]: Introduce structural configuration (Deprecate flags and env?)51 comments · 2020-05-08#1057Add support for structured logging (at least JSON)50 comments · 2021-02-19#1663[Bug]: samsite strict cause csrf error on callback41 comments · 2022-05-29#482Proposal: Deprecation of cookie splitting41 comments · 2020-04-10#834More fields in `/oauth2/userinfo`38 comments · 2020-10-09#1836oauth2-proxy sends expired access tokens to backend37 comments · 2022-10-16
Discussions
#3604goat: an open-source data fabric with OAuth2 Proxy in front of its web surfaces0 comments · 2026-11-13#3554The "Vulnerabilities have been addressed" section is confusing and suggests oauth2-proxy has CVEs every other release1 comments · 2026-10-01#3542Clarification on Helm chart maintenance2 comments · 2026-09-22#3429Is it possible to forward Roles Claim as a header, like email, etc.?1 comments · 2026-05-08#3416[SOLVED]oauth2-proxy in kubernetes - with traefik forwardAuth middleware - not redirecting after auth1 comments · 2026-04-27#3328Upstream CA0 comments · 2026-01-30#3291"Found" hyperlink appears instead of automatic redirect to Microsoft Entra ID login0 comments · 2025-12-23#3275Traefik v3 reverse-proxy and oauth2-proxy as a authentication middleware1 comments · 2025-11-29
Latest release
v7.15.6 v7.15.6 2026-11-05Release Highlights
- Entra ID: Fixed tenant ID extraction for national / private cloud support
- Fixed multiple return code and redirect issues
- 🔵 Golang version upgrade to v1.26.10
- Upgrade of all dependencies to their latest versions
- 🕵️♀️ Vulnerabilities have been addressed
- CVE-2026-111943
- CVE-2026-116585
- CVE-2026-116586
- CVE-2026-56857
- CVE-2026-56866
- CVE-2026-78659
- CVE-2026-78660
- CVE-2026-78661
- CVE-2026-78663
- CVE-2026-78667
- CVE-2026-78669
- CVE-2026-94439
- CVE-2026-94440
- CVE-2026-94