JupyterHub SSO: LDAP, OIDC, Active Directory and Entra ID

JupyterHub supports SSO through its authenticator system, and every option is in the open-source release because the project publishes no paid edition. Built-in PAM is the default, while Entra ID, generic OIDC and LDAP or Active Directory need separate authenticator packages configured in jupyterhub_config.py or Helm values.

On this page

Does JupyterHub SSO work with Entra ID, Active Directory and LDAP?

JupyterHub supports single sign-on through authenticators, and there is no paid edition, so every option described here ships in the open-source release. The default authenticator is PAM, which logs in local system accounts, so it does not connect a platform to a corporate directory on its own. Directory and identity options come from separate packages that you install alongside the Hub: OAuthenticator providers, including AzureAdOAuthenticator for Entra ID, GenericOAuthenticator for any OpenID Connect provider, and ldapauthenticator for LDAP and Active Directory. SAML does not appear on the project's authenticators page, so do not assume a SAML option exists until you have confirmed it in the package you plan to use.

Each authenticator is configured in jupyterhub_config.py, or in Helm values under hub.config for Zero to JupyterHub, where you set JupyterHub.authenticator_class and add a settings block named after that class. The Zero to JupyterHub authentication guide shows Azure Active Directory with a tenant_id setting, generic OpenID Connect with authorize_url, token_url, userdata_url and username_claim, and LDAP with server_address and bind_dn_template. Those examples are minimal. Your team still has to design the parts they leave out, such as transport encryption, service account handling and group filtering, and confirm how each package supports them in the version you deploy.

Before approval, confirm five things. First, that the authenticator package you choose is documented for your JupyterHub version. Second, that it targets your exact directory or identity provider. Third, that access is explicit: since version 5.0, allow_all defaults to False, so an empty allowed_users list no longer admits everyone, and you should still set the list deliberately. Fourth, that SAML is either not required or has a named integration path. Fifth, that a disabled directory account loses access to the Hub, which you should test with a real account before go-live. Check the authenticators reference for the version you plan to run, and write these checks into the statement of work.

Which JupyterHub SSO options are built in and which need a package

This table compares the single sign-on and directory options JupyterHub documents and shows whether each one ships with the Hub or needs a separate authenticator package. Read the status column first, then the configuration column to see where the settings go in jupyterhub_config.py or Helm values. PAM is the default and the only option here that needs no extra package, so every directory or identity provider option requires its own authenticator class.

OptionStatusWhere it is configured
PAM (default)Built in. Logs in local system accounts on the Hub host.jupyterhub_config.py, or hub.config in Helm values with JupyterHub.authenticator_class
OAuthenticator providers (Auth0, GitHub, GitLab, Google and others)Separate package. Covers Auth0, Bitbucket, CILogon, GitHub, GitLab, Globus, Google, MediaWiki and OpenShift.A settings block named after the provider class, in jupyterhub_config.py or hub.config
Azure Active Directory and Entra IDSeparate package (AzureAdOAuthenticator). Listed in Zero to JupyterHub with a tenant_id setting.AzureAdOAuthenticator block with tenant_id, under hub.config in Helm values
Generic OIDC (Keycloak example)Separate package (GenericOAuthenticator). Listed in Zero to JupyterHub with a Keycloak example.GenericOAuthenticator block: authorize_url, token_url, userdata_url and username_claim
LDAP or Active DirectorySeparate package (ldapauthenticator.LDAPAuthenticator). Listed in Zero to JupyterHub.LDAPAuthenticator block. server_address and bind_dn_template are the only required settings.
SAMLNot documented. Confirm support with the authenticator author before planning around it.No documented settings block. Ask the candidate package maintainer for its configuration keys.
Paid editionNone published. The project publishes no paid tier or managed offering.Not applicable. Confirm directly with any vendor offering a commercial SSO add-on.

How JupyterHub SSO hands login to your identity provider

Login in JupyterHub is split across three components, and knowing which one owns each step tells you where to look when a sign-in fails. The proxy is the only process exposed to users, so every browser request enters through it and is routed onward. The Hub runs the authenticator, decides whether a given username may receive a server, and records the account. The spawner then starts one notebook server per user, as a local process, a container or a Kubernetes pod, depending on the spawner you chose. The authenticator is the only component that knows about your identity provider, so LDAP, OIDC and Entra ID settings all sit in the authenticator configuration and nowhere else. Confirm early which spawner your deployment uses, because it determines where user servers run and what they can reach.

With OIDC and Entra ID, login begins with a browser redirect. The user goes to the provider, signs in there, and the provider returns a token to the Hub, which then reads the user's data from the provider. The Hub takes the username from a claim in that data. For generic OpenID Connect through GenericOAuthenticator, you set the claim with username_claim, and the Entra ID path uses AzureAdOAuthenticator with a tenant_id setting. The Hub never receives the user's password on this path, but it trusts whichever claim you name, so confirm with the provider that the claim is unique and stable for each person. The LDAP path works differently. The Hub binds to the directory with a DN template built from the username, and login succeeds only when that bind is accepted. LDAP support comes from a separate ldapauthenticator package, so plan its installation and its server_address and bind_dn_template settings as their own work item.

Authorization is a separate decision from authentication. Since version 5.0, allow_all defaults to False, so an empty allowed_users list admits no one, even when the identity provider accepts the password. In Zero to JupyterHub, admin_users and allowed_users sit under the Authenticator block of hub.config, next to the settings for your chosen authenticator, so the access list can be reviewed in one place. Before go-live, confirm that the list is populated from the directory groups or user records you intend, that admin_users names only people who need administrator rights, and that an account outside the list is refused. The Zero to JupyterHub authentication guide is the natural next read for the exact keys.

The Hub checks identity before any server starts

The login path starts when a browser requests a notebook URL. The proxy is the only public-facing process, so it forwards the request to the Hub, which hands the login to the authenticator configured in jupyterhub_config.py or Helm values. The authenticator calls either an OIDC or Entra ID provider or an LDAP directory, depending on what you configured, and the identity it returns goes to the Hub. The Hub then checks allowed_users and admin_users. A match lets the spawner start that user's server. A miss ends at an access denied response, so test both paths.

Login flow from browser through the Hub to a spawned server or a denial.

Decisions to make before choosing a JupyterHub SSO path

Six decisions determine how JupyterHub signs users in and which accounts it trusts. They depend on each other: the identity provider selects the authenticator package, the username claim sets the account name the Hub stores, and the pinned release line determines which package versions you can test. Settle them in writing before you edit jupyterhub_config.py or the Helm values under hub.config.

Identity provider and protocol

Choose between Entra ID, on-premises Active Directory through LDAP, or a generic OpenID Connect provider such as Keycloak. Each route needs its own authenticator package and settings block. Entra ID uses AzureAdOAuthenticator with a tenant_id, generic OIDC uses GenericOAuthenticator with authorize_url, token_url and userdata_url, and LDAP uses LDAPAuthenticator. The authenticators reference page does not list LDAP, so confirm the package name, its maintenance status and its compatibility with your JupyterHub line before you commit.

Zero to JupyterHub authentication

Username claim or attribute

The claim or attribute you choose becomes the Hub account name, and that name identifies the user in the Hub database, the admin and allow lists, and the spawned server. Changing it later can leave existing users without their old accounts. With GenericOAuthenticator, username_claim sets the field read from the user data response. With LDAP, the bind_dn_template builds the bind name from what the user types. For Entra ID, confirm with your tenant which claim carries the sign-in name and whether it is stable and case sensitive before you map users.

Allow list versus admin list

allowed_users decides who may log in, and admin_users decides who receives Hub administration rights. Since version 5.0, allow_all defaults to False, so an empty allowed_users list no longer admits everyone. Both settings sit under the Authenticator block in the Helm values under hub.config. Keep the lists in version control or in a group claim your directory team already governs, and test a user who appears in neither list, since that user should be refused. If you leave the default PAM authenticator in place, local system accounts can log in.

Where secrets and bind credentials live

OIDC client secrets and the LDAP bind password let the Hub talk to your identity provider, so they should not sit in a values file committed to Git. On Kubernetes, store them in a Kubernetes Secret and confirm, in the chart's values reference for your version, which mechanism injects secrets into the Hub. On a single server, the same secrets sit in jupyterhub_config.py, so restrict that file's permissions and confirm which operators can read the Hub process environment.

LDAP encryption and service account

A plain LDAP connection exposes passwords on the network. Before the first test, ask your directory team whether the server accepts LDAPS or StartTLS and which CA certificate the Hub must trust. Decide whether the Hub binds as the user through the bind_dn_template pattern or needs a dedicated read-only service account for group lookups. Confirm that the account can read every attribute and group membership you plan to use in the allow and admin lists.

Pinned release and chart version

The authenticator package has to match the JupyterHub release you run, and the Helm chart pins that release. The Zero to JupyterHub documentation shows Helm chart 4.4.5 deploying JupyterHub 5.5.5, while PyPI listed JupyterHub 6.2.0 as the latest release in December 2026, so your chosen line decides which authenticator versions you can test. Pin the JupyterHub, chart and authenticator versions together, record them in your change log, and rerun a login test after every upgrade.

How the JupyterHub SSO answer changes by identity provider and deployment

The Zero to JupyterHub authentication guide documents Microsoft Entra ID through AzureAdOAuthenticator, which takes a tenant_id setting alongside the usual client credentials. This tab fits organizations whose staff already sign in to Microsoft 365 and whose identity team manages groups and conditional access in Entra ID.

  • Class name: Confirm the current class name and import path in the OAuthenticator package docs before you copy a configuration, because older examples may use different naming.
  • App registration: Create the app registration in your Entra tenant and set the redirect URI that the Hub's callback path requires. Confirm the exact callback path and the client secret lifetime with your identity team.
  • Tenant scoping: Set tenant_id to the directory that holds your users. Guest accounts and users from other tenants should be tested separately, because they may present different claims.
  • Admission rules: Since version 5.0, allow_all defaults to False, so an empty allowed_users list admits no one. Set admin_users and allowed_users under the Authenticator block and confirm the behavior in your deployed version.
  • Group claims: Confirm whether group membership arrives in the token or needs a directory lookup in your tenant, since that decides how you map roles.

Test the sign-in flow with a test account in a non-production hub, then review the claims the Hub receives before you assign admin rights.

Where JupyterHub SSO falls short for enterprise approval

Single sign-on for JupyterHub is documented for several directory and OAuth options, but the gaps that matter in an enterprise approval sit around them. The five cards below cover what the documentation does not settle: SAML support, group mapping, MFA and session policy, deprovisioning, and login logging. Each card names the usual way to close the gap, and most of those fixes should be tested on a staging Hub before go-live.

SAML is not documented here

The authenticators page lists PAM, OAuthenticator providers, a shared-password authenticator and community authenticators, and it does not mention SAML. If your identity provider only speaks SAML, plan an OIDC broker in front of it. A broker such as Keycloak can accept SAML upstream and present OIDC to the Hub, which then uses GenericOAuthenticator. Before you adopt any community SAML package, check its maintenance status, its license and whether it meets your signing and encryption requirements, and confirm these with the maintainer in writing.

Authenticators documentation

Group mapping differs by package

Directory groups are not a given. Whether group membership reaches the Hub depends on the authenticator package, and the options vary. Confirm for each package whether it reads group claims or LDAP group membership, and whether it can translate them into allowed_users or admin_users. In Zero to JupyterHub, those lists sit under the Authenticator block in the Helm values. Test with a group you control on a staging Hub, then have the directory owner sign off on the mapping table before production.

Zero to JupyterHub authentication

MFA and session policy

The Hub does not enforce multi-factor authentication itself. The identity provider does, through its conditional access or MFA rules, so the policy only covers JupyterHub if the application is registered with that provider and the rule applies to it. Write down the session lifetime you expect, then test it: change the policy, sign out, and confirm the next sign-in is challenged. Ask the identity team which sessions can outlive a directory change, because a disabled user may keep a live session until it expires.

Deprovisioning needs a tested runbook

Hub accounts persist in the Hub database after the directory changes. The Hub keeps its user state in a database through SQLAlchemy, with SQLite as the default and PostgreSQL recommended for production. Removing access therefore means blocking sign-in at the identity provider and checking the Hub user list, including any admin or allowed entries in its configuration. Write an offboarding runbook that names an owner for each step, test it on a staging Hub before the first real leaver, and schedule a periodic access review of the Hub user list against the directory.

Hub database docs

Login events for reviewers

A reviewer usually needs to see who signed in, when, and from where. Confirm which of those events the Hub writes to its own logs, which ones the proxy records, and which the identity provider keeps as the sign-in record of record. Do not assume that failed sign-ins or admin changes appear in every log. Run a successful sign-in, a failed sign-in and an admin change in staging, then check that each event reaches the log store your security team reads.

Putting JupyterHub SSO into production in order

Moving JupyterHub single sign-on into production is a sequence of checks, and each check must pass before the next begins. The order below starts with pinned versions and ends with a recorded configuration that a security or compliance reviewer can read. Your platform team or a partner does the work, and each step closes with a result you can verify.

  1. Pin the JupyterHub and authenticator versions

    Record the exact JupyterHub version, the authenticator package and its version, and the Helm chart version if you deploy on Kubernetes. Pin each one in your build or deployment files so a routine upgrade cannot change login behavior silently. Read the license of every package you install, including the authenticator, which is maintained separately and may carry its own terms. The JupyterHub core and the Zero to JupyterHub chart are both BSD 3-Clause, so confirm the terms of the authenticator with your legal team. Done when the lock file or Helm values show one version per component and the license review is filed with the change record.

  2. Choose the authenticator and install it

    Match your identity source to an authenticator class. The Zero to JupyterHub guide covers LDAP and Active Directory through ldapauthenticator, Azure Active Directory through AzureAdOAuthenticator with a tenant_id setting, and generic OpenID Connect through GenericOAuthenticator. The Authenticators reference does not list LDAP, so confirm the package name and its maintenance status before you rely on it. Install the package into the Hub image or environment, then set JupyterHub.authenticator_class in jupyterhub_config.py or under hub.config in Helm values. Done when the Hub starts with the new class and a test login reaches the Hub.

  3. Test with a small allow list

    Add a short allowed_users list that holds one non-admin test account for each identity source you use. Keep admin_users empty for this pass. Sign in through the identity provider and confirm the account reaches the Hub and gets its own notebook server. Then confirm that an account outside the list is refused. Done when both results match what you expected and you have written down the exact test accounts and the outcome of each login.

  4. Lock down allow_all and admin_users

    Since JupyterHub 5.0, allow_all defaults to False, so an empty allowed_users list does not admit everyone. Set allow_all explicitly to False anyway, so the value appears in your reviewed configuration. List admin_users by named accounts from your identity provider, keep the list short, and give each name a documented owner. Check the rendered configuration under the Authenticator block in Helm values or in jupyterhub_config.py. Done when the review passes and a non-admin test account cannot open the admin panel.

  5. Move secrets into your secret store

    OAuth client secrets, LDAP bind passwords and similar values should not sit in plain text in jupyterhub_config.py or in Helm values committed to source control. Load them from your secret manager or from Kubernetes Secrets, then pass them to the Hub through environment variables or mounted files, depending on how your chart reads them. Confirm that the Hub can read each secret, that the values do not appear in logs or the admin panel, and that the configuration repository holds no copy. Done when a search of the repository and the running Hub finds no plain-text credential.

  6. Test failure and account removal cases

    Exercise the paths that fail in production. Try a wrong password, then a login with an expired or revoked token, then an account that you remove from the directory or group that feeds allowed_users. Confirm how long an existing session stays valid after removal, and test it instead of assuming it. Check the Hub log for a clear refusal that contains no credentials. Done when a removed account is refused on its next login and each failure produces a log entry your security team can read.

  7. Verify network reachability in restricted networks

    In an air-gapped or restricted network, the Hub must reach the identity provider on the ports it uses. For LDAP, test the server_address and the bind_dn_template from the Hub's network segment, including DNS names and certificate trust. For OpenID Connect, confirm that the Hub can reach token_url and userdata_url, and that the user's browser can reach authorize_url and return to the public Hub address through the proxy. Done when a test login succeeds from the restricted segment and a login attempted from an unapproved segment fails.

  8. Record the configuration for review

    Write down what a reviewer needs: the JupyterHub and authenticator versions, the license notes, the authenticator class and its non-secret settings, how allowed_users and admin_users are populated, and where each credential is stored. Add the test accounts, the results and the failure cases you covered. Keep the record in your change system and tie it to the commit or Helm release that deployed it. Done when a reviewer who did not take part can trace each login rule to a setting and a test result.

What a security reviewer asks to see for JupyterHub SSO

This table lists what a security reviewer usually asks for when JupyterHub signs users in through LDAP, OIDC, Active Directory or Entra ID. Each row pairs a question with the evidence to produce and the Hub configuration, package documentation or platform log that holds it. The main takeaway is that the reviewer can check most answers from the configuration file and a directory export, so collect them before the review starts.

Reviewer questionEvidence to provideWhere it comes from
Which authenticator class is in use?The value of JupyterHub.authenticator_class, such as LDAPAuthenticator, AzureAdOAuthenticator or GenericOAuthenticator, plus the installed package version.Hub configuration (jupyterhub_config.py or Helm hub.config) and the installed package list
Is allow_all set to False?Explicit allow_all: False in the Authenticator block, with allowed_users listing the permitted groups or accounts.Authenticator block in hub.config (Helm) or jupyterhub_config.py
Is the default PAM authenticator still active?Confirmation that PAM is no longer the active class, since it logs in local system accounts.The authenticator_class value in the running deployment
Who holds administrator rights in the Hub?The admin_users list, reviewed line by line against the directory group that is meant to hold administrators.Authenticator block in the Hub configuration and the directory group membership export
Where do the client secret or bind credentials come from?Named secret store or Kubernetes Secret that supplies the OIDC client secret or LDAP bind password, with read access limited to the Hub.Secret manager or Kubernetes Secret reference, and its access policy
Do Hub accounts match the directory?Export of Hub user accounts matched against current members of the permitted directory groups, with differences listed.Hub user table in the database, plus a directory group export taken on the same day
Does a removed directory user lose access?Dated test record showing a removed directory account cannot start or keep a Hub session.Hub log entries for the denied login, plus the identity provider's sign-in record for the test account
Are the authenticator packages licensed and maintained?License file, latest release date and open issues for each LDAP, Entra ID or generic OAuth package in use.Package repository license file, the release history on PyPI and the maintainer's issue tracker

Questions buyers ask before approving JupyterHub SSO

How much does JupyterHub SSO setup cost, and what recurs?

The JupyterHub software has no license fee, so the cost is the work around it: design, configuration, testing and upkeep. JupyterHub is licensed under the BSD 3-Clause license, so the charge comes from people and access. One-time costs are the design, the configuration for each identity provider and the test plan. Recurring costs are package upkeep as JupyterHub ships new releases, such as 6.0.0 on 1 September 2026, plus secret rotation and reviews whenever the directory or group model changes. Ask any quote to split effort into three parts: DeployOpen engineering time, time from your directory and identity team, and test effort. Compute and database costs are covered on the JupyterHub pricing page.

How long does JupyterHub SSO setup take?

The duration depends on the number of identity providers, the group rules and any air-gapped constraints, and it is fixed in the written scope before work starts. Each driver changes the effort in a different way:

  • Number of identity providers: each provider needs its own authenticator settings, application registration, callback configuration and test login.
  • Group rules: the access model decides how much group mapping, filtering and negative testing is needed before go-live.
  • Air-gapped constraints: packages, certificates and metadata must come from inside the network, and the Hub must reach each provider's endpoints from its own network segment.

Ask for a schedule that lists each provider and group rule as its own item, with a named test window for your directory team.

Can our own team configure JupyterHub SSO without a partner?

Yes, for a single provider with a written test plan, but LDAP group mapping and multi-tenant Entra ID setups take more experience. In Zero to JupyterHub, the authenticator is set under hub.config in the Helm values, with the class name and a settings block named after it, so a team that already runs the chart can test one change in a separate release first. The Azure Active Directory authenticator needs a tenant_id setting. The LDAP authenticator documentation lists only server_address and bind_dn_template as required, so group filtering and TLS choices must be confirmed in the package you select. Mistakes in group rules usually cause either lockouts or access that is wider than intended, so keep an administrator session open during every change.

What does the organization need to provide for SSO work?

Three things should be ready before work starts: identity provider admin access, a test directory group and a named owner for secrets. The details depend on the provider:

  • Identity provider admin access: rights to register the Hub as an application, set callback URLs and read the claims or group settings the Hub will use. For LDAP, a read-only bind account is usually the starting point.
  • A test directory group: a small group of test users kept separate from production, so that both allowed and denied logins can be checked before other users are affected.
  • A named owner for secrets: one accountable person for the OAuth client secret or LDAP bind password, including where the secret is stored and how it is rotated.

Confirm that the people who grant these rights are available during the test window, since most delays come from waiting for approvals.

Does JupyterHub support SAML single sign-on?

The JupyterHub authenticators documentation does not list a SAML authenticator, so do not plan on native SAML without confirming it first. Two routes are worth evaluating. The first is a broker placed between your identity provider and the Hub: the broker accepts SAML from your provider and offers OIDC to JupyterHub, and the Zero to JupyterHub documentation uses Keycloak as an example of this pattern under its generic OIDC setup. The broker then becomes another system to run, patch and secure. The second is to ask the Jupyter project or check the community authenticators listed on the authenticators page, and review each one's maintenance status and version support before approving it. Record the decision in the scope so the identity team knows which route is being built.

What happens to existing local accounts after switching from PAM?

Local accounts stop being the login path once the authenticator changes, so every user signs in through the new provider. The default PAM authenticator logs in local system accounts, so the Hub will recognize users by the username the new provider returns. If those names differ from the local names, notebook files and home directories tied to the old names will not match automatically. Since version 5.0, allow_all defaults to False, so users missing from allowed_users are refused, which means the allowed list must be complete before cutover. Decide for each existing account whether it stays, maps to a new username or is removed, and confirm with your spawner how home directories are handled.

How DeployOpen plans JupyterHub SSO in your infrastructure

DeployOpen plans JupyterHub SSO as a fixed-scope engagement in infrastructure you control, starting with the identity source your users already sign in through. The work covers the authenticator choice, the Helm values or jupyterhub_config.py settings, access rules and the test plan before anything reaches production. Ongoing support, upgrades and continuous testing are available as a retainer.

How we scope

  • Confirm which identity source holds your users: LDAP, Active Directory, Entra ID or a generic OIDC provider.
  • Record admin_users, allowed_users and access rules in the written scope before configuration starts.
  • Fixed-scope engagements list deliverables and timelines in writing, and ongoing support is available as a retainer.

How we build

  • Map each identity source to its authenticator, such as AzureAdOAuthenticator for Entra ID with a tenant_id setting.
  • Set LDAP options such as server_address and bind_dn_template under hub.config, or in jupyterhub_config.py on one server.
  • Test login, logout, denied users and admin rights on a staging hub before production sign-in.

How we hand over

  • Deliver the config files, secrets handling notes, and a record of every authenticator setting and its owner.
  • Document the LDAP package or OAuthenticator version pinned, since the project's authenticator docs do not cover LDAP.
  • Hand over a runbook covering user onboarding, client secret rotation and the allow_all default.

How we support

  • Upgrade work checks the authenticator package against each JupyterHub release before the Hub is updated.
  • Retainers can cover upgrades, continuous testing of login paths and changes to identity provider settings.
  • Confirm with your identity team how group changes, offboarding and session lifetime are enforced at the provider.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.