Adding MFA to Open edX through SSO

Enforce multi-factor authentication for Open edX learners and staff by delegating sign-in to a SAML or OAuth2 identity provider, then close local password sign-in for admins.

On this page

Adding MFA to Open edX through SSO: what it does and when you need it

If your self-hosted Open edX site relies on local passwords alone and that no longer meets your policy for staff or learners, the fix is usually not a stronger password rule inside Open edX. It is to move sign-in to an identity provider that enforces multi-factor authentication (MFA) and then stop accepting local passwords for the accounts that matter most. Open edX third-party authentication can delegate sign-in over OAuth2, SAML 2.0, Shibboleth and LTI, so the LMS and Studio trust the identity provider's answer instead of checking their own password store. Keycloak or Entra ID are common choices, but the decision is about where MFA is enforced and who can still bypass it, not which product you pick first.

The roles that benefit most are the ones with the widest reach: Studio authors and course team members who can change content, instructors with access to learner records, and any account with Django admin or staff flags on the LMS or Studio domains. Learners also benefit when they hold payment, certificate or personal data, but enforcing MFA on the whole learner population is a policy decision with support consequences, so plan the rollout by audience. Before you start, list every account type that can sign in locally, including service and break-glass accounts, and confirm with your identity team which of them the identity provider can cover. Anything left out of that list stays a path around MFA.

This section does not cover the password policy inside Open edX, which governs local passwords that you may still keep for some accounts, nor the mechanics of configuring each provider, closing local sign-in for admins or testing the result. Those are covered in the sibling topics and in the steps that follow. It also does not tell you how your identity provider's MFA methods meet a particular control framework; that depends on your provider configuration and your auditor's reading, so confirm it with them. Ask your identity team which MFA methods and session rules they already run, because Open edX will inherit whatever the provider enforces.

Where MFA sits in the sign-in path

The sign-in starts in the learner or staff browser, which is sent to the Open edX LMS or Studio. Both applications hand authentication to the identity provider, such as Keycloak or Entra ID, which runs the password and MFA steps inside its own trust boundary. Only after the provider returns a signed assertion or token does Open edX create a local session. Check that the local admin password path is closed, so no request can bypass the provider.

Sign-in delegated to the identity provider, with the local admin path closed.

Choosing the identity protocol and provider

This table compares the identity protocols Open edX can use for third-party sign-in, with Keycloak and Entra ID as example providers. Read each row against the identity provider you already run, and treat the confirm column as the list to check with that provider's documentation and your Open edX release before committing.

OptionWhen it fitsWhat the identity provider must supplyWhat to confirm
OAuth2 (including Azure Active Directory)Your identity provider speaks OAuth2 or OpenID Connect and you want the sign-in options Open edX lists by defaultA registered client with an ID and secret, a redirect URI for the LMS, and user claims such as email and nameWhich MFA policy applies to the client, whether the claims Open edX needs are released, and how the provider's login flow is configured in your Open edX release
SAML 2.0Your organization already runs a SAML identity provider, such as Keycloak or Entra ID, and needs signed assertions with session-level MFAA SAML entity configuration, signing certificate, metadata, and attribute mapping for email and nameWhether the provider can require MFA in the assertion or session, certificate rotation steps, and the attribute names your Open edX settings expect
ShibbolethYour campus or federation already uses Shibboleth and you need federated access across organizationsFederation metadata and attribute release agreed with the federation operatorFederation membership rules, which attributes are released, and whether MFA is enforced by the home institution rather than your platform
CASLegacy systems in your estate only offer CAS and you cannot move them to a supported protocolA CAS server endpoint and validated user attributesWhether this option is still present in your Open edX release, since it is listed as older provisional support, and how the provider handles MFA
SSL client certificatesLearners or staff must authenticate with managed certificates, such as on a controlled networkA certificate authority chain, certificate issuance process, and a mapping from certificate fields to accountsWhether this option is still supported in your release, how revocation works, and whether it meets your MFA requirement for every user type
Keycloak as example providerYou want a self-managed provider that supports OpenID Connect, OAuth 2.0 and SAML 2.0 with MFA configured inside the realmAn OIDC client or SAML client, realm MFA policy, and user federation if accounts live in another directoryThe protocol you pick is supported by your Open edX release, the Keycloak version you run, and the MFA flow you configure in the realm
Entra ID as example providerYour workforce already signs in through Microsoft Entra ID and conditional access enforces MFAAn app registration with redirect URI, client secret or certificate, and optional SAML enterprise applicationWhich conditional access policies apply to the Open edX application, token lifetime, and whether the claims Open edX uses are included

Keycloak or Entra ID: which path fits your organization

If your organization already runs a self-managed identity provider, Keycloak can become the single place where multi-factor authentication is enforced for Open edX. Keycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0, so the Open edX side can use whichever protocol your team already operates. The work moves from the LMS to the identity provider: you configure the client in Keycloak, set the matching third-party authentication settings in Open edX, and then close local password sign-in for administrators.

  • Protocol choice: Pick OIDC or SAML based on existing client patterns and on what your Tutor build's third-party authentication settings support. Confirm the exact settings for your Open edX release before you commit.
  • Keycloak release line: The current Keycloak release is 26.8.1, published October 13, 2026. Since Keycloak 26.0, minor releases are planned four times a year and breaking changes in minors are opt-in, so the identity service needs its own upgrade cadence.
  • High availability: If Keycloak becomes the only sign-in path for every learner, both supported high availability designs need a synchronously replicated database. An identity outage then stops the whole platform, which adds design and testing effort.
  • Database and operator choices: Keycloak supports several production databases. If you run the Keycloak Operator, the documentation strongly recommends manual approval mode for operator updates.
  • Peak sign-in load: Learner logins often arrive in bursts at course start or exam time. Confirm that the identity tier is sized for that load before the platform goes live.

Check who already owns Keycloak operations, since much of the effort sits in that team's upgrade and availability plan.

How to set up MFA-backed sign-in for Open edX

This sequence moves Open edX sign-in to an external identity provider where multi-factor authentication is enforced, then closes local password sign-in for administrators. Each step ends with a check you can run before moving on, so a misconfigured redirect or attribute map is caught while local access still works.

  1. Confirm the identity provider's MFA policy and protocol

    Your identity team confirms which protocol the provider will use for Open edX, SAML 2.0 or OAuth2/OIDC, and which MFA policy applies to the group of users who will sign in to the LMS and Studio. Check whether the policy can target specific applications, whether it applies to administrators and learners alike, and which second factors are allowed. Open edX third-party authentication supports SAML 2.0 and OAuth2 providers, so confirm the chosen protocol appears in the supported list before continuing. Done means you have a written policy statement and a protocol decision that the platform team has signed off on.

  2. Register Open edX as a client with exact redirect URIs

    Create the Open edX application in the identity provider, using the LMS and Studio domains you run in Tutor. Register the callback or assertion consumer URLs exactly as Open edX expects them, including scheme, host and trailing path, because mismatched redirect URIs are a common cause of failed sign-in. Restrict the client to the users and groups that should reach the platform and disable implicit or unused flows where the provider allows. Check it by opening the provider's client settings and comparing each registered URI against the domain list in your Tutor configuration.

  3. Configure third-party authentication in Tutor

    Add the provider settings to your Tutor installation through a plugin or the supported configuration path, keeping client secrets and signing certificates out of version control and in the secret store you already use. Set the identity provider's metadata or endpoints, the client identifier and the mapping for the email and username fields. Apply the configuration and restart the LMS and Studio services so the new settings load. Verify by opening the login page in a private browser window and confirming the provider button appears and that the redirect reaches the provider's sign-in screen.

  4. Map attributes and roles to Open edX accounts

    Decide which provider claims or SAML attributes populate the Open edX username, email, full name and any group membership used for course staff or platform roles. Map these in the provider configuration, then agree with the course and platform teams which groups grant staff or instructor access and which grant learner access only. Keep Django superuser and staff flags assigned by administrators, not by directory group alone, unless your access review process says otherwise. Verify by signing in with one test account from each group and confirming the resulting account has the expected name, email and role, with no unexpected elevated access.

  5. Test MFA enforcement with a non-admin account

    Sign in as a learner-only test account and confirm the identity provider prompts for the second factor before the LMS session starts. Repeat with a staff test account that has course authoring rights, and check that Studio also requires the same provider sign-in and factor. Try a failed factor and an expired session to confirm the platform does not fall back to a local password prompt for these users. Record the results, including the time of each sign-in and the audit entries the provider and platform produced, so the evidence is available for your review. Do not move to the next step until every test account behaves as the policy states.

  6. Disable local password sign-in for administrator accounts

    Once the external flow is proven, remove the ability for administrator accounts to sign in with a local password, and rotate or clear their existing local passwords so they cannot be used as a fallback. Keep at least one documented break-glass route under your change control, and store its credentials in your approved secret manager with access limited to named people. Confirm that administrator accounts still reach the Django admin only through the MFA-backed path, and that the admin interfaces are restricted to the networks you have defined. Verification is a sign-in attempt with a local password for an administrator account that fails, paired with a successful sign-in through the provider.

Security risks to address before go-live

Moving sign-in to an identity provider changes where trust lives, and most of the risk sits at the seams between Open edX and that provider. The cards below cover the failure points that undermine MFA if they are left unchecked, from a forgotten password path to sign-in events nobody reviews.

Local password sign-in left open

If Open edX still accepts a local password for admin and staff accounts, an attacker can skip the identity provider and its MFA entirely. Confirm which accounts can authenticate locally, and confirm that the login path for administrators requires the federated flow. Test it from a clean browser session, including the Django admin paths, since a working local login there defeats the whole control.

Weak MFA methods at the provider

MFA only helps if the provider enforces a strong second factor. Check whether the identity provider allows SMS codes, email codes or simple recovery questions as the only second factor, and whether enrollment rules let a user skip MFA. Set the provider's authentication policy for each Open edX client so that staff and learners cannot reach the LMS or Studio without the factor you chose.

Session lifetime mismatch

The identity provider session and the Open edX session expire on separate clocks. A provider session that stays alive for hours can silently re-authenticate a user whose Open edX session should have ended, and the reverse can force repeated prompts. Align the provider's idle and maximum session settings with the Open edX session settings, and test what happens when an admin closes the browser and returns the next day.

Account linking that merges identities

Linking federated logins to existing Open edX accounts by matching email addresses can attach one person's sign-in to another person's account, especially when email addresses are reused or unverified. Decide which attribute is the stable key, usually the provider's unique subject identifier, and confirm that the provider only issues verified email addresses before any linking happens.

Client secret handling

The client secret or SAML signing material that connects Open edX to the provider grants trust in the whole integration. Store these values outside the repository and out of plain Tutor configuration files where possible, restrict file permissions on the Tutor host, and plan a rotation procedure that does not require downtime. Record who can read and rotate these values.

Sign-in event logging

Without records of federated sign-ins, failed MFA attempts and admin logins, a compromised account can go unnoticed. Confirm that the identity provider forwards authentication events to your log platform, that Open edX logs the account and login path for each session, and that someone reviews failed-factor and new-device alerts. Ask the provider which events it records and how long they are retained.

Questions buyers ask before adding MFA to Open edX

What drives the cost of adding MFA to Open edX through SSO?

The cost depends on how many identity sources you already run, how much integration work the identity provider needs, and how much of the switch you hand to a partner. The main cost components are identity provider configuration (Keycloak or Entra ID), the Open edX third-party authentication setup, account linking and testing, and the cutover itself. Most of this is one-time work. Recurring costs sit on the identity provider side, such as hosting, upgrades and support contracts, and on any retainer you choose for ongoing changes. DeployOpen does not publish a price list, so ask for a written scope that separates each component so you can compare it with your own team's effort.

How long does adding MFA to Open edX take?

Duration depends mainly on whether your identity provider already enforces MFA, how many learner and staff populations need different rules, and how quickly your security and platform teams can review the configuration. Keycloak has its own release cadence and high availability design, so a production identity provider that needs clustering or a database choice takes longer than a single test instance. Ask for a timeline in the written scope that lists the identity provider readiness, the Open edX integration, testing with sample accounts and the cutover window. Any timeline should be tied to those dependencies rather than to a fixed number of days.

What do we need from our identity and platform teams?

Both teams have defined work. The identity team must confirm which identity provider will be the authority, which MFA methods are approved, how sessions and password rules are set, and which SAML or OAuth2 client settings they will issue. The platform team must provide access to the Tutor-based Open edX environment, the configuration files, a test site and the ability to restart services during the cutover. Both teams should agree on who owns the identity provider after go-live, who approves changes and how break-glass accounts are kept. Without these decisions, the project stalls in review.

Can our internal team add MFA to Open edX without a partner?

An internal team can do it if it has experience with Open edX third-party authentication, an identity provider administrator and someone who can test the full sign-in and account-linking flow. Open edX documents its supported identity providers, including OAuth2 providers, SAML 2.0 and Shibboleth. The harder parts are usually the identity provider hardening, the cutover plan and the testing of admin and learner paths. Ask yourself whether your team can run the full test matrix and keep the configuration current through Open edX releases, since only the latest named release is supported.

What happens to learners who cannot use MFA?

Plan an alternative path before enforcing MFA. Learners who lack a phone, have no supported authenticator or have accessibility needs must still reach their courses. Options include a supported second factor that does not depend on a personal device, a documented support route for account recovery and a clear policy on which populations are exempt. Decide these rules with your compliance and accessibility teams before the cutover, and confirm each option with your identity provider, because the available MFA methods depend on the product and its configuration.

What happens to admins during the switch to SSO?

Admins are the most sensitive group in the switch, so their access must be planned separately. Local password sign-in for Django admin and staff accounts should be closed only after the SSO path is tested and at least one recovery route is in place. Confirm which accounts keep superuser or staff flags, how break-glass access is stored and who can reach the admin interfaces. Test each admin role end to end on a staging site before the production cutover, and record the change so auditors can trace who authorized the closure of local sign-in.

Does enabling MFA through SSO affect Open edX upgrades?

Yes, it adds work to each upgrade cycle. The identity provider and its Open edX integration must be tested against the current named release, because only the latest named release is supported. Keycloak also changes on its own schedule, with minor releases several times a year and breaking changes opt-in for minor releases, so the identity provider needs its own upgrade plan. Ask for the upgrade steps in the written scope so that MFA does not silently break when the platform or the identity provider changes.

Limits to confirm in your environment

The MFA design depends on four things we cannot settle from documentation alone: the Open edX release and Tutor version in use, the Keycloak release and database, the provider's MFA behavior with the Open edX client, and whether learners can reach the provider. Confirm each before you fix the scope, because each one changes the build sequence.

Open edX release and Tutor fit

Confirm that the named Open edX release and the Tutor version you run support the third-party authentication flow you plan to use for SAML 2.0 or OAuth2. Open edX supports one release at a time, so a flow that works on the release you are moving to may not work on the one you run today. Ask Tutor-specific questions about which plugin or settings file carries the provider configuration.

Supported named release
1
Supported identity providers

Keycloak release pinned for production

Record the exact Keycloak release your team will run, and check it against the upgrade guidance before the first deployment. Keycloak plans four minor releases a year, so the version you test against may not be the one you deploy. Confirm whether your organization runs the open source build or a Red Hat build of Keycloak, since support terms and version lag differ.

Keycloak upgrading guide

Database behind the identity provider

Confirm which production database Keycloak will use. Keycloak supports PostgreSQL from version 14 to 18, along with several other engines, and the development file database is not suitable for production. Check whether your database team can meet the high availability design Keycloak documents, which requires a synchronously replicated database for supported cluster designs.

Keycloak database guide

MFA behavior with the Open edX client

Test that the provider's MFA prompt completes inside the Open edX sign-in flow, including password reset, account linking and first-time learner registration. Some MFA methods require a browser step that a learner's embedded or mobile session may not handle. Confirm which factors your provider offers, how step-up rules apply to staff and learners, and what happens when a learner loses a second factor.

Learner network and provider reach

Confirm that every learner location and device class can reach the identity provider over the network and that the sign-in redirects resolve for your LMS and Studio domains. Check proxies, firewalls, regional restrictions and any partner or school networks that block the provider. Plan the fallback path for learners who cannot complete a provider sign-in during an outage.

Admin lockout and local password closure

Confirm how your team will close local password sign-in for admin accounts without locking out the only operators who can fix the setup. Test a break-glass path on a staging site first, and confirm who holds the recovery credentials and where they are stored. Check that the provider's admin console access is itself protected by MFA before local sign-in is closed.

How DeployOpen scopes and delivers SSO with MFA

DeployOpen plans, builds, tests and documents MFA for your Open edX platform inside your own infrastructure, with the identity provider, the LMS and Studio configuration and the admin lockdown agreed in writing before work starts. Engagements are fixed-scope, and the deliverables are the working sign-in path and the evidence your security and compliance teams need to review it.

How we scope

  • Confirm which identity provider you run or will adopt, such as Keycloak or Entra ID, and who owns it.
  • Agree which learner, staff and admin populations must use MFA, and which local sign-in paths will close.
  • Record the scope, deliverables and timeline in writing before any configuration changes begin.

How we build

  • Configure the SAML 2.0 or OAuth2 connection in Open edX third-party authentication and test it in a staging Tutor environment.
  • Enforce MFA at the identity provider, and verify that LMS and Studio sign-in both route through it.
  • Disable local password sign-in for admin accounts and document the break-glass procedure for recovery.

How we hand over

  • Deliver the configuration, the attribute and claim mappings, and a runbook for onboarding and offboarding users.
  • Provide test results covering MFA enforcement, failed sign-in behavior and admin account restrictions.
  • Walk your operations team through certificate, client secret and identity provider change handling.

How we support

  • Support the platform through a retainer covering upgrades, identity provider changes and re-testing after releases.
  • Retest the sign-in path after each Open edX or identity provider update, with fixes included in scope.
  • Ask for the support scope, response expectations and exclusions in the written quote before signing.

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.