# OAuth2 Proxy

> A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers

Source: https://talira.ai/catalog/oauth2-proxy-6rgarp7c
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure
- Categories: [security / access proxies](https://talira.ai/categories/security/access-proxies), [security / auth / sso](https://talira.ai/categories/security/auth/sso)
- Platforms: linux, macos, windows, docker, kubernetes[^3][^10]
- Licence: MIT[^8][^9]
- Pricing: Free and open source[^8][^9]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^8][^9]
- Self-hostable: yes[^3][^9]
- SSO: yes[^7][^9]
- Backed by: [OAuth2 Proxy](https://talira.ai/orgs/oauth2-proxy.md), [Cloud Native Computing Foundation](https://talira.ai/orgs/cncf.md)
- Funding: non-profit[^11][^12]
- Sponsors: SAP Open Source Program
- Forked from [oauth2_proxy (Bitly)](https://talira.ai/catalog/oauth2-proxy-bitly-7vhq73d1.md) in 2018.

OAuth2 Proxy puts an OAuth2 or OpenID Connect login in front of web applications, either as a reverse proxy in front of the upstream app or as an authentication check that [nginx](https://talira.ai/catalog/nginx-nfjkekkp.md)'s `auth_request`, [Traefik](https://talira.ai/catalog/traefik-proxy-rzfqntzc.md) ForwardAuth or [Caddy](https://talira.ai/catalog/caddy-vc8j4642.md) call on every request. It signs people in through a generic OIDC provider or built-in providers for Google, [Microsoft Entra ID](https://talira.ai/catalog/microsoft-entra-id-42ry0qz0.md), [GitHub](https://talira.ai/catalog/github-ppcgj756.md), [GitLab](https://talira.ai/catalog/gitlab-y85n5jcy.md), [Keycloak](https://talira.ai/catalog/keycloak-jw9hhr96.md), login.gov and others, restricts access by email, domain or group, and passes the user's identity and tokens to the app as HTTP headers. Sessions live in an encrypted cookie or [Redis](https://talira.ai/catalog/redis-v917j45s.md), and it ships as a single Go binary, a container image and an official [Helm](https://talira.ai/catalog/helm-wvsxp6a4.md) chart. It began in 2018 as a fork of bitly's oauth2_proxy, is MIT licensed and is a Cloud Native Computing Foundation Sandbox project.

## Links

- Website: https://oauth2-proxy.github.io/oauth2-proxy/
- GitHub: https://github.com/oauth2-proxy/oauth2-proxy
- Docs: https://oauth2-proxy.github.io/oauth2-proxy/

## Ways to install

### On your own server

- [Unraid Community Applications](https://talira.ai/catalog/unraid-community-applications-9jw5an1a.md): <https://ca.unraid.net/apps/oauth2-proxy-17p2ry306r594f>[^1]
- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/oauth2-proxy>[^2]

### On Kubernetes

- [Artifact Hub](https://talira.ai/catalog/artifact-hub-s43pzyps.md): <https://artifacthub.io/packages/helm/oauth2-proxy/oauth2-proxy>[^3][^4]

### Hosted for you

- [Railway](https://talira.ai/catalog/railway-mczwyt8g.md): <https://railway.com/deploy/oauth2-proxy>[^5]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/oauth2_proxy>[^6]

## Problems it solves

- put a Google or GitHub login in front of an internal web app that has no authentication of its own
- only let people with our company email domain reach the staging site
- protect Prometheus, Grafana and other admin dashboards with single sign-on from our Okta or Entra ID
- add OIDC login to an nginx site with auth_request without changing the app
- Traefik forward auth middleware that sends users to our identity provider
- restrict a Kubernetes dashboard to members of one GitHub team or GitLab group
- pass the signed-in user's email and groups to my legacy app as HTTP headers
- my app can trust an X-Forwarded-User header if something in front of it handles the login
- self-hosted alternative to Google Identity-Aware Proxy or Cloudflare Access
- secure an internal tool behind Keycloak without adding an OAuth library to its code
- one login cookie that covers several subdomains behind the same proxy
- let API clients with a valid JWT bearer token through while browsers get the login page
- skip authentication for a health check path but require login everywhere else
- add login to a static documentation site served from a folder
- store login sessions in Redis because the cookie gets too big with our identity provider's tokens
- protect Headlamp or the Kubernetes Dashboard with our company's single sign-on
- authentication sidecar for a Kubernetes service installed with a Helm chart
- gate a homelab app with Google sign-in and an allow list of email addresses
- use login.gov as the identity provider for a government web app
- an htpasswd username and password fallback next to OAuth sign-in for a few service accounts

## Features

- standalone reverse proxy in front of HTTP(S) upstreams, unix sockets or static files
- authentication check endpoint (/oauth2/auth) for nginx auth_request, Traefik ForwardAuth and Caddy
- providers: generic OpenID Connect, ADFS, Bitbucket, Cidaas, Cisco Duo, DigitalOcean, Facebook, Gitea, Forgejo, GitHub, GitLab, Google, Keycloak, LinkedIn, login.gov, Entra ID, Nextcloud, SourceHut
- allow access by email address, email domain, an email list file or group membership
- passes X-Forwarded-User, X-Forwarded-Email and X-Forwarded-Groups headers, and the ID or access token, to upstreams
- skip-auth routes by method and path
- accepts verified JWT bearer tokens from configured issuers
- optional htpasswd file for username and password sign-in
- sessions in an encrypted cookie or Redis (standalone, Sentinel or Cluster)
- Prometheus metrics endpoint, /ping liveness and /ready readiness checks
- configuration by command line flags, environment variables or a config file
- prebuilt binaries for Linux, macOS, Windows and FreeBSD, including arm, ppc64le and s390x
- distroless container images on quay.io, Alpine variants and nightly builds
- official Helm chart

## Limitations

- Can't offer a choice of several identity providers on one instance: support for multiple providers isn't complete[^7]

## Capabilities

- Has single sign-on: plan not known

## Trust

Overall: 0.43 out of 1.
Signals: backing 0.70, extensibility 0.00.

- backed by OAuth2 Proxy and Cloud Native Computing Foundation
- funding: non-profit
- sponsored by SAP Open Source Program

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [authentik](https://talira.ai/catalog/authentik-n6xa119j.md): The authentication glue you need
- [Tinyauth](https://talira.ai/catalog/tinyauth-ttt2wayd.md): The tiniest OpenID Certified authorization and authentication server you have ever seen
- [Pomerium](https://talira.ai/catalog/pomerium-92f79eyx.md): Identity- and context-aware access proxy for internal apps, services and AI agents
- [Authelia](https://talira.ai/catalog/authelia-rzsda9ak.md): The Single Sign-On Multi-Factor portal for web apps
- [Cloudflare Access](https://talira.ai/catalog/cloudflare-access-sw70erm5.md): Zero trust network access for self-hosted apps, SaaS applications and infrastructure
- [Ory Oathkeeper](https://talira.ai/catalog/ory-oathkeeper-b4cxpmkt.md): Identity-aware proxy and access control decision API for Zero Trust

## Sources

[^1]: https://ca.unraid.net/api/apps/oauth2-proxy-17p2ry306r594f (checked 20 Nov 2026)
[^2]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/oauth2-proxy.sh (checked 21 Nov 2026)
[^3]: https://oauth2-proxy.github.io/oauth2-proxy/installation (checked 20 Nov 2026)
[^4]: https://github.com/oauth2-proxy/manifests (checked 20 Nov 2026)
[^5]: https://railway.com/deploy/oauth2-proxy (checked 20 Nov 2026)
[^6]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^7]: https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/ (checked 20 Nov 2026)
[^8]: https://github.com/oauth2-proxy/oauth2-proxy/blob/master/LICENSE (checked 20 Nov 2026)
[^9]: https://github.com/oauth2-proxy/oauth2-proxy/blob/master/README.md (checked 20 Nov 2026)
[^10]: https://github.com/oauth2-proxy/oauth2-proxy/releases/latest (checked 20 Nov 2026)
[^11]: https://www.cncf.io/about/charter/ (checked 20 Nov 2026)
[^12]: https://www.cncf.io/ (checked 20 Nov 2026)
