Skip to content

oauth2-proxy

Reverse proxy that puts OAuth2 and OIDC login in front of any web app

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

71

Health

Active

Overview

Stars

15,404

Last commit

15 days ago

Nov 2026

Repository age

9 years

since Sep 2017

Latest version

v7.15.6

Nov 2026

Contributors

–

15 active in 90 days

Releases

11

last 12 months

Language

Go

OAuth2 Proxy adds authentication to web applications that have no login of their own. It can run as a standalone reverse proxy, or as a middleware beside an existing reverse proxy or load balancer. Unauthenticated users are redirected to your identity provider.

It works with a generic OIDC client and has specific provider support for Google, Microsoft Entra ID, GitHub and login.gov, among others. Provider-specific code can read details such as preferred username and groups and pass them to your upstream apps as HTTP headers.

It is written in Go and MIT licensed. Binaries are published for many architectures, including ppc64le and s390x. Container images use a distroless base, with Alpine-based tags available for debugging. It is also on Homebrew. It acts as a self-hosted alternative to the access-gating features of commercial identity-aware proxies, though no specific product is named.

Who it's for

Platform engineers protecting internal tools

You can put SSO in front of dashboards and apps without changing their code.

Skip if: You need a full identity provider with user management.

Kubernetes and reverse-proxy operators

It works as middleware alongside an existing proxy or load balancer.

Skip if: Your ingress already has built-in OIDC that meets your needs.

Small teams using GitHub or Google accounts

Provider-specific support lets you reuse accounts you already have.

Skip if: You want a managed service with support.

The problem it solves

Internal apps often ship with no login or only weak ones. OAuth2 Proxy puts standard OAuth2 or OIDC sign-in in front of them without code changes.

Strengths

  • Runs standalone or as middleware for an existing proxy
  • Generic OIDC plus provider-specific support for Google, Entra ID, GitHub
  • Forwards usernames and groups to upstream apps as headers
  • MIT licensed with 11 releases in the last year
  • Binaries for many architectures and distroless container images

Trade-offs

  • It only handles authentication, not user management
  • You need an external OAuth2 or OIDC provider
  • Nightly images are unstable and not for production
  • Review times can be slow because it is volunteer-driven

Self-host oauth2-proxy

Self-hostable
Yes

Frequently asked questions

Is it free?

Yes. It is MIT licensed.

Can I self-host it?

Yes. You run it yourself as a binary or container image.

Which providers work?

Any OIDC provider through the generic client, plus specific support for Google, Microsoft Entra ID, GitHub and login.gov.

Which platforms does it run on?

Linux and macOS, as a CLI binary or Docker image. It is also available through Homebrew.

Similar tools in Identity and access management

Permify

Identity and access management

6k 332 8 days ago Thriving AGPL-3.0

VoidAuth

Identity and access management

Self-hosted SSO provider with OIDC, ForwardAuth and LDAP for home labs and small setups

2.9k 136 today Thriving AGPL-3.0

Supertokens

Identity and access management

Self-hosted login and session management for developers who own their user data

15k 777 17 days ago Active Apache-2.0 + open core

Replaces AWS CognitoFirebase Auth

Zitadel

Identity and access management

Self-hosted identity platform with SSO, multi-tenancy and a full event audit trail

16k 1.4k today Thriving AGPL-3.0

Replaces Auth0KeycloakOkta

Cerbos

Identity and access management

Self-hosted authorization service that checks access rules written as YAML policies

4.7k 220 yesterday Thriving Apache-2.0

Hanko

Identity and access management

Self-hosted authentication API with passkeys, SSO and web components for app developers

9.1k 1k 4 days ago Thriving AGPL-3.0