# oauth2_proxy (Bitly)

> A reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others)

Source: https://talira.ai/catalog/oauth2-proxy-bitly-7vhq73d1
Every listing: https://talira.ai/catalog.md

Status: oauth2_proxy (Bitly)'s makers archived or ended it in September 2018. Bitly archived oauth2_proxy at the end of September 2018 and asked for PRs and issues to go to pusher/oauth2_proxy, its official hard fork. Source: https://github.com/bitly/oauth2_proxy/blob/master/README.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[^3]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Backed by: [Bitly](https://talira.ai/orgs/bitly.md)

oauth2_proxy was Bitly's reverse proxy and static file server that puts sign-in in front of web apps: it authenticates users with Google, Azure, [Facebook](https://talira.ai/catalog/facebook-anxcp1ab.md), [GitHub](https://talira.ai/catalog/github-ppcgj756.md), [GitLab](https://talira.ai/catalog/gitlab-y85n5jcy.md) or LinkedIn, checks their email, domain or group, and passes authenticated requests upstream, or answers [nginx](https://talira.ai/catalog/nginx-nfjkekkp.md)'s auth_request with its /oauth2/auth endpoint. It's a Go binary configured with a file, flags or environment variables, MIT licensed. Bitly archived it at the end of September 2018 and named pusher/oauth2_proxy, now [OAuth2 Proxy](https://talira.ai/catalog/oauth2-proxy-6rgarp7c.md), its official hard fork; [Pomerium](https://talira.ai/catalog/pomerium-92f79eyx.md) and buzzfeed/sso are other projects its README points to.

## Links

- GitHub: https://github.com/bitly/oauth2_proxy

## Problems it solves

- require a Google login from our company domain before anyone reaches an internal dashboard
- put GitHub sign-in in front of a web app that has no login of its own
- use nginx auth_request to check that visitors are signed in with our identity provider
- only let members of a certain Google group reach an internal tool
- add OAuth login to a static site served from our own server
- a small reverse proxy that handles OAuth and passes the user's email to the app behind it
- restrict access to a staging site to people with an email on our domain
- log who accessed an internal app through an authenticating proxy

## Features

- providers: Google, Azure, Facebook, GitHub, GitLab and LinkedIn
- allow users by email, email domain, Google group or GitHub organization and team
- reverse proxy to upstream apps and static file server
- /oauth2/auth endpoint for the nginx auth_request directive
- cookie sessions with a configurable secret
- htpasswd file sign-in alongside OAuth
- request logging with a configurable format
- configuration by file, command-line flags or environment variables

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.08 out of 1.
Signals: maintenance 0.00, backing 0.30, extensibility 0.20.

- backed by Bitly

Warnings:

- archived by its makers since September 2018
- GitHub activity not fetched yet

## Forks

- [OAuth2 Proxy](https://talira.ai/catalog/oauth2-proxy-6rgarp7c.md): A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers. Its own project since 2018.

## Alternatives

- [OAuth2 Proxy](https://talira.ai/catalog/oauth2-proxy-6rgarp7c.md): A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers
- [Tinyauth](https://talira.ai/catalog/tinyauth-ttt2wayd.md): The tiniest OpenID Certified authorization and authentication server you have ever seen
- [Authelia](https://talira.ai/catalog/authelia-rzsda9ak.md): The Single Sign-On Multi-Factor portal for web apps
- [Pomerium](https://talira.ai/catalog/pomerium-92f79eyx.md): Identity- and context-aware access proxy for internal apps, services and AI agents

## Sources

[^1]: https://github.com/bitly/oauth2_proxy/blob/master/LICENSE (checked 20 Nov 2026)
[^2]: https://github.com/bitly/oauth2_proxy/blob/master/README.md (checked 20 Nov 2026)
[^3]: https://github.com/bitly/oauth2_proxy/releases/tag/v2.2 (checked 20 Nov 2026)
