talira

oauth2_proxy (Bitly)

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

open sourceMITself-hostablefree

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.

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, GitHub, GitLab or LinkedIn, checks their email, domain or group, and passes authenticated requests upstream, or answers nginx'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, its official hard fork; Pomerium and buzzfeed/sso are other projects its README points to.

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 toolplan not known

Forks

  • OAuth2 Proxy A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers. Its own project since 2018.

Alternatives

The same job

These do what oauth2_proxy (Bitly) does.

  1. OAuth2 Proxy A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers
  2. Tinyauth The tiniest OpenID Certified authorization and authentication server you have ever seen
  3. Authelia The Single Sign-On Multi-Factor portal for web apps
  4. Pomerium Identity- and context-aware access proxy for internal apps, services and AI agents

Compare oauth2_proxy (Bitly) with the top 3