OAuth2 Proxy
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 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:
Similar to OAuth2 Proxy

Authelia
Self-hosted IAM with SSO and multi-factor authentication
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.
Pomerium
Identity- and context-aware access proxy for zero trust access
Pomerium is an identity-aware access proxy that provides zero trust, per-request authorization to internal web apps and services without a traditional VPN.
Keycloak
Open-source identity and access management with SSO
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.

Logto
Authentication and authorization platform for apps and APIs
Open-source authentication and authorization infrastructure with OIDC/OAuth 2.1, SAML SSO, multi-tenancy, MFA, and RBAC for SaaS and AI apps.
VoidAuth
Self-hosted SSO and user management with OpenID Connect and ForwardAuth
VoidAuth is a self-hosted SSO provider with OpenID Connect, ForwardAuth proxy auth, and built-in user and group management plus MFA and passkeys.
ZITADEL
API-first identity and access management platform for applications
ZITADEL is an open source IAM/CIAM platform providing SSO, MFA, OIDC/OAuth2, SAML, user management, and multi-tenant organizations with audit logging.


