OAuth2 Proxy

Website

Reverse proxy and middleware for OAuth2/OIDC authentication

14.9k stars 2.2k forks last commit first released MIT

Actively maintained

Last commit 24 Aug 2026.

OAuth2 Proxy screenshot

OAuth2 Proxy is a flexible reverse proxy and middleware component that adds OAuth2/OIDC authentication in front of web applications. It integrates with many identity providers and forwards verified identity information to your upstream services.

Key Features

  • Works as a standalone reverse proxy or as an authentication middleware in front of existing proxies/load balancers
  • Supports OAuth2 and OpenID Connect, including a generic OIDC provider and dedicated implementations for common providers
  • Validates users by email, domain, and (for supported providers) groups
  • Forwards authenticated identity details to upstream apps via HTTP headers (for example username and group information)
  • Can also serve static files when used as a standalone reverse proxy

Use Cases

  • Add single sign-on in front of internal tools without modifying the applications
  • Protect multiple services behind a central reverse proxy using a shared authentication layer
  • Gate access to dashboards and admin panels with provider-backed identity and group-based access

Limitations and Considerations

  • Requires correct reverse-proxy/header configuration to avoid trusting spoofed identity headers from untrusted networks
  • Provider feature support varies; group/role extraction depends on the chosen provider implementation

OAuth2 Proxy is commonly used to standardize authentication for self-hosted and internal web apps with minimal application changes. It is well-suited for environments that already rely on OAuth2/OIDC identity providers and need a lightweight authentication gateway.

Categories:

Tags:

Tech Stack:

Share:

Similar to OAuth2 Proxy

Authelia logo

Authelia

Self-hosted IAM with SSO and multi-factor authentication

28.7k
1.5k
Last commit

Authelia is an open-source IAM and authentication server providing SSO, MFA, and access control for web apps, with OpenID Connect/OAuth 2.0 and reverse-proxy integration.

Apache-2.0Actively maintained
Alternative to:
Auth0 logo
Auth0
+16

Pomerium

Identity- and context-aware access proxy for zero trust access

5k
350
Last commit

Pomerium is an identity-aware access proxy that provides zero trust, per-request authorization to internal web apps and services without a traditional VPN.

Apache-2.0Actively maintained
Alternative to:
Cloudflare Access logo
Cloudflare Access
+12
Keycloak logo

Keycloak

Open-source identity and access management with SSO

36.4k
8.9k
Last commit

Keycloak is an open-source IAM server providing single sign-on, user federation, and centralized authentication and authorization using OIDC, OAuth 2.0, and SAML.

Apache-2.0Actively maintained
Alternative to:
Okta logo
Okta
+19
Logto logo

Logto

Authentication and authorization platform for apps and APIs

14.5k
1.2k
Last commit

Open-source authentication and authorization infrastructure with OIDC/OAuth 2.1, SAML SSO, multi-tenancy, MFA, and RBAC for SaaS and AI apps.

MPL-2.0Actively maintained
Alternative to:
Auth0 logo
Auth0
+19

VoidAuth

Self-hosted SSO and user management with OpenID Connect and ForwardAuth

2.5k
100
Last commit

VoidAuth is a self-hosted SSO provider with OpenID Connect, ForwardAuth proxy auth, and built-in user and group management plus MFA and passkeys.

AGPL-3.0Actively maintained
Alternative to:
Auth0 logo
Auth0
+19
ZITADEL logo

ZITADEL

API-first identity and access management platform for applications

14.9k
1.3k
Last commit

ZITADEL is an open source IAM/CIAM platform providing SSO, MFA, OIDC/OAuth2, SAML, user management, and multi-tenant organizations with audit logging.

AGPL-3.0Actively maintained
Alternative to:
Auth0 logo
Auth0
+19