oauthenticator
OAuthenticator: Authenticate JupyterHub users with common OAuth providers
What it is and what it does
OAuthenticator bridges OAuth2 identity providers and JupyterHub by overriding the login handlers to support token-based authentication instead of username/password mapping. It ships with authenticators for major providers like GitHub, Google, Azure AD, GitLab, Globus, and others, plus a GenericAuthenticator for custom OAuth2 setups.
The package depends on JupyterHub, Tornado, requests, PyJWT, and related utilities to handle OAuth flows, token validation, and user session management. It is designed for administrators deploying JupyterHub in environments where centralized identity management through OAuth2 is preferred, such as institutional deployments, cloud platforms, or organizations already using services like GitHub or Google Workspace.
Use it for:
- Deploy JupyterHub with GitHub OAuth so users log in via their GitHub account without separate credentials.
- Configure institutional Azure AD authentication for a JupyterHub instance serving a university or enterprise.
- Set up Globus authentication for a research computing environment requiring federated identity management.
- Use GenericAuthenticator to integrate JupyterHub with a custom or less common OAuth2 provider.
- Migrate from local JupyterHub authentication to Google OAuth for simplified user management.
- Enable single sign-on across multiple JupyterHub deployments using a shared OAuth identity provider.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
OAuthenticator provides OAuth2 login handlers for JupyterHub, supporting multiple identity providers including GitHub, Google, Azure AD, GitLab, and others through provider-specific authenticators or a configurable generic handler.
Yes, if you run JupyterHub and need OAuth2 authentication. The package is actively maintained, has low install friction, supports many common providers out of the box, and carries no known vulnerabilities. It is the standard way to integrate OAuth identity providers with JupyterHub. Install only if you have a JupyterHub instance and an OAuth provider to configure.
Install
oauthenticator on PyPI
pip
pip install oauthenticatoruv
uv add oauthenticatorpoetry
poetry add oauthenticatorInstalling oauthenticator
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release and ongoing commits; last commit 2026-08-03 indicates current development activity.
License in practice
BSD-3-Clause is a permissive open-source license with minimal restrictions on use, modification, and distribution in both open and proprietary contexts.
Quickstart
pip install oauthenticator
In jupyterhub_config.py:
from oauthenticator.github import GitHubOAuthenticator
c.JupyterHub.authenticator_class = GitHubOAuthenticator
Requires Python >=3.10 and a running JupyterHub instance configured with OAuth provider credentials.
Verify before relying
- Whether all listed OAuth providers (Auth0, Azure AD, Bitbucket, CILogon, GitHub, GitLab, Globus, Google, MediaWiki, OpenShift) are equally well-maintained and documented.
- Performance characteristics and scalability limits when handling large numbers of concurrent authentication requests.
- Whether the GenericAuthenticator can be reliably used with arbitrary OAuth2 providers not explicitly listed.
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — jsonschema, jupyterhub, pyjwt, requests, ruamel-yaml, tornado, traitlets |
| Maintenance | actively maintained — 141 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,218/month — #13,611 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oauthenticator-17.4.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
streamlit-authenticatorAdds user authentication and access control to…
permissive · top 15,000 on PyPI
fastapi-ssoFastAPI plugin that adds single sign-on (SSO)…
permissive · top 5,000 on PyPI
django-oidc-providerProvides OpenID Connect and OAuth 2.0 server…
permissive · top 15,000 on PyPI
Flask-OAuthlibFlask-OAuthlib adds OAuth 1.0a and OAuth 2.0…
permissive · top 15,000 on PyPI
jupyterhubJupyterHub is a multi-user server that spawns,…
permissive · top 15,000 on PyPI
Flask-DanceFlask-Dance simplifies OAuth authentication in…
permissive · top 5,000 on PyPI
flask-oidcAdds OpenID Connect authentication support to…
permissive · top 5,000 on PyPI
google-auth-oauthlibIntegrates oauthlib with google-auth to handle…
permissive · top 1,000 on PyPI
oauth2Implements OAuth 1.0 authentication for Python…
permissive · top 15,000 on PyPI
ssh-import-idssh-import-id fetches public SSH keys from…
copyleft · top 15,000 on PyPI