Open edX SSO with Microsoft Entra ID

Open edX can sign staff and learners in with Microsoft Entra ID through its third-party authentication. This page covers the method choice, setup sequence, attribute mapping, account linking and failure points.

On this page

How Open edX signs in users with Microsoft Entra ID

A university or enterprise team that wants its staff and learners to use existing Microsoft Entra ID accounts on Open edX can do so through the platform's third-party authentication. The answer is direct: Open edX supports Azure Active Directory as one of its default OAuth2 providers, and SAML 2.0 is also available as a separate option. Open edX documentation still uses the older name, Azure Active Directory, for the same identity service, so expect that label in configuration screens and guides. The supported method for this topic is the built-in OAuth2 provider, with SAML 2.0 kept as the alternative if your tenant policy or attribute requirements call for it.

At sign-in, the learner or staff member is redirected to Entra ID, authenticates there, and returns to the Open edX LMS with an identity that the platform matches to a local account. Entra ID handles the password, multi-factor prompts and conditional access rules, while Open edX decides whether the user can register, which email attributes it trusts and how the account is linked to an existing user. The integration does not manage course roles, instructor or staff permissions inside courses, or group membership in Studio. Those stay in the Open edX admin and course team settings, so plan a separate process for granting them. Before scoping the work, confirm with your tenant administrator which Entra ID application registration, redirect URI and claims your organization will allow, and confirm with your Open edX version which provider settings apply to it.

What you need before configuring Entra ID sign-in

Entra ID sign-in for Open edX depends on four things lining up before anyone touches the LMS settings: a known Open edX release and Tutor deployment, an Entra ID tenant where someone can register applications, HTTPS on both the LMS and Studio domains, and a written decision about who may sign in. Work through the cards in order, because the redirect URIs and the user scope both depend on the first two.

Confirm the Open edX release and Tutor version

Start by recording the Open edX release your site runs and the Tutor version that deploys it. Open edX states that the latest named release is the only supported release, and the current named release is Verawood, published on 30 July 2026. Confirm your running release against the vendor release notes and the Tutor documentation, because the supported version list comes from those sources and your configuration steps must match your release.

Release notes

Check the third-party auth provider path

Open edX ships with Azure Active Directory as one of its default OAuth2 providers, alongside SAML 2.0 and Shibboleth. Decide early whether you will use the built-in OAuth2 provider or SAML, because the Entra ID application type, the claims you request and the account linking steps differ between them. Confirm on your release that the provider is enabled in your deployment before planning the rest of the work.

Supported identity providers

An Entra ID tenant with application rights

You need an Entra ID tenant that holds the staff and learner accounts you intend to use, and an administrator who can register applications in it and grant consent for the permissions the sign-in flow requires. Confirm who owns the tenant, whether your learners are members or guests, and whether conditional access or MFA policies already apply. Missing application registration rights are a common reason the work stalls after the platform side is ready.

HTTPS on LMS and Studio domains

Identity providers return users to the platform over HTTPS, so the LMS and Studio domains need valid certificates and stable DNS names before you register anything. Each redirect URI you register in Entra ID must match the scheme, host, port and path that Open edX sends, character for character. Plan your domain names and certificate renewal first, because changing a domain later means editing every registered redirect URI and retesting sign-in.

Decide which Entra ID users may sign in

Write down which Entra ID users may sign in to the LMS and Studio, and which roles they receive. Options include the whole tenant, a single security group, or a named set of staff accounts, and each option changes how Open edX handles first-time logins and account linking for existing users. Ask your identity team to confirm the group or domain rule in writing, so the scope is agreed before testing begins.

Plan a test environment and a rollback

Prepare a non-production Open edX instance that mirrors the production domains, or a staging hostname registered as a separate redirect URI. Test sign-in, account linking for existing users and a forced logout with accounts from each group in scope. Keep the local username and password path available until the Entra ID flow is verified, so a misconfigured setting does not lock out your administrators.

Choosing OAuth2 or SAML 2.0 for Entra ID

When every account that signs in is an employee or contractor of one organization, the protocol choice mostly comes down to what your identity team already runs and what attributes the course team needs. Open edX third-party authentication lists Azure Active Directory among its OAuth2 providers by default, so it is the shorter path when you only need a working sign-in button and basic profile data. SAML 2.0 is the better fit when your security team wants signed assertions, explicit attribute release and a configuration that mirrors your other enterprise applications.

  • Shorter setup: The default OAuth2 provider needs an app registration and client credentials, with no separate metadata exchange.
  • Tighter attribute control: SAML lets your team define exactly which attributes Entra ID releases to the LMS.
  • Consistency with other apps: If your Entra ID enterprise applications already use SAML, adding Open edX keeps one pattern for reviewers.
  • Staff access rules: Restricting sign-in to staff is usually done in Entra ID assignment settings, whichever protocol you choose.
  • Admin access: Decide early which staff accounts become platform administrators, since sign-in alone does not grant Studio or LMS admin rights.

Confirm with your Entra ID administrator which claims and attributes your tenant can release for your application type before you commit to a protocol.

Configuring Entra ID in Open edX step by step

This sequence takes you from an app registration in Microsoft Entra ID to staff and learners signing in to your Open edX LMS, with a verified test login before any wider rollout. Each step ends with a check you can confirm before moving on.

  1. Register the application in Entra ID

    An identity administrator in your Entra ID tenant creates an app registration for the LMS, names it so course teams recognize it, and records the application (client) ID and a client secret value. Store the secret in your secrets manager straight away, because the portal shows it only once. Confirm the registration appears under App registrations with the tenant ID you expect, and that the secret has an expiry date your team has calendared for renewal.

  2. Set redirect URIs for the LMS

    In the app registration, add the redirect URI that Open edX expects for the Azure Active Directory provider on your LMS domain, using https and the exact hostname learners use. Mismatched hostnames, trailing slashes or http schemes are the most common reason the sign-in callback fails. Check the URI against the Open edX third-party authentication documentation for your release, then confirm the portal lists the URI exactly as typed.

  3. Confirm token and claim settings in Entra ID

    Decide which user attributes Open edX needs, most often the email address and display name, and confirm Entra ID releases them in the token the provider returns. Review whether the email claim is populated for your users, especially guest accounts, which often lack a primary email. Record the findings so the attribute mapping step uses the same names. The check is a test token or sign-in you inspect that contains the email value you expect.

  4. Enable the Azure AD provider in Open edX

    Enable the Azure Active Directory provider in third-party authentication, either through your Tutor configuration or the LMS admin interface, depending on how your platform is managed. Enter the client ID and client secret from step one into the provider settings, and keep the secret out of version-controlled files. Redeploy or save the configuration, then confirm the sign-in page shows the Microsoft option and that the provider entry is enabled in the admin view.

  5. Map attributes and account linking rules

    Set how the provider's attributes map to Open edX fields, and decide whether existing local accounts should be linked to the Microsoft identity by matching email address. Review the auto-registration setting so that only the users you intend can create accounts on first sign-in. Write these choices down, since they determine how duplicate accounts are handled later. The check is a dry review of the mapping with your identity team, signed off before any user signs in.

  6. Test sign-in with one account

    Choose one test account in Entra ID that does not hold broad privileges, and sign in through the Microsoft option on the LMS. Confirm the learner dashboard loads, the profile shows the expected name and email, and a second sign-in reuses the same account rather than creating a new one. Then check the LMS logs or authentication records for an entry showing the Azure Active Directory provider was used. Do not move on until that entry is present.

  7. Test linking and a staff role

    Repeat the sign-in with an existing local account whose email matches the Entra ID user, and confirm the account links rather than duplicates. Test one staff account to verify that course authoring and admin permissions are assigned as your access model intends, since SSO does not grant staff roles on its own. Record the results. The check is a passing test for both the linked learner and the staff user, with no unexpected accounts in the user list.

  8. Roll out to users in stages

    Enable the Microsoft option for a defined group of staff and learners, then widen access once support tickets and log entries show sign-ins are behaving as the test cases predicted. Keep the local login path available for administrators during the rollout so that a configuration fault does not lock everyone out. Document the secret rotation date and who owns the provider settings. The rollout is complete when the monitoring you agreed shows successful provider sign-ins across the target groups.

How a sign-in flows between Open edX and Entra ID

The flow starts when a learner opens the LMS login page and chooses the Microsoft option. The LMS redirects the browser to the Entra ID tenant, where the user authenticates. Entra ID returns an authorization response to the LMS callback, and the LMS then validates it, creates a local account or links an existing one, and starts the session. Check the redirect URI, the claims returned for email and name, and how the local account is matched before go-live.

Sign-in sequence between the learner, the LMS and the Entra ID tenant.

Mapping Entra ID attributes to Open edX accounts

This table compares each Open edX account field with the Entra ID claim or SAML attribute that should populate it, and the decision behind each mapping. Read it before the first test sign-in, because mapping errors create duplicate or misassigned accounts that are hard to unwind later. The main takeaway is that identity claims establish who the person is, while what they can do inside Open edX is configured separately.

Open edX fieldEntra ID source to confirmMapping decision and risk
UsernameStable identifier such as the object ID or a configured user principal name claimChoose a value that never changes after creation. Changing it later can orphan the account and its course history.
EmailEmail or preferred username claim, checked against your tenant's verification settingsUse it for account matching only when the value is verified. An unverified email lets a user claim an existing learner or staff account.
Full nameGiven name and surname claims, or the display name claimConfirm how your tenant populates these fields for guests and external users, since certificates and instructor views display this name.
Account active statusAccount enabled state reflected through sign-in success, or a removed user at the identity providerDisabled Entra ID accounts stop signing in, but existing Open edX sessions and API tokens need a separate revocation plan.
Existing account matchingVerified email from the identity providerLink to an existing account by verified email only. Test with a duplicate-email case before go-live, because the rule decides whether two people can merge.
Roles and course accessGroup or app role claims, if you pass themNot inherited by default. Instructor, staff and course enrollments are set inside Open edX or by a configured mapping you build and test separately.

Linking existing Open edX accounts to Entra ID

Decide before go-live how existing local Open edX accounts will be matched to Entra ID identities, because the matching rule determines whether a returning user lands in their current account or gets a second one. Open edX third-party authentication links a federated login to a local user when the identity can be matched, and the usual approach is to match on email address. Confirm with your Open edX version and Tutor configuration how the platform handles an incoming Entra ID login when a local account with the same email already exists, and whether it asks the user to confirm the link or links silently. Run this check against a copy of production data before any change reaches learners.

Order the work so that staff move first and learners second. Start with course teams and platform administrators, whose accounts carry Studio and instructor permissions, and confirm their roles survive the first Entra ID sign-in. Then move a learner pilot group, chosen from a single program or cohort with a known roster. Before widening access, compare the list of Entra ID users who signed in with the list of local accounts. Look for emails that differ by case, alias or a changed domain, and for duplicate emails that map to two accounts. Each mismatch needs an owner who decides whether to merge, rename or leave the accounts separate.

Auto-registration decides what happens when an Entra ID user has no local account. Keeping it on lets any user in the tenant who passes your Entra ID assignment rules create an account, which suits open enrollment but widens the set of accounts you must govern. Turning it off means every user must be provisioned first, which adds an administrative step but keeps the account population under your control. For regulated audiences, the safer default is usually off until the reconciliation report is clean. Your Entra ID app registration should also restrict assignment to the intended users or groups, so that sign-in alone does not grant platform access.

Securing the Entra ID integration

The Entra ID integration is only as strong as the settings on both ends of it. Entra ID decides who can reach the sign-in, and the Open edX site decides what a successful sign-in is allowed to do, so the card below cover the controls to review on each side before go-live.

Client secret storage and rotation

The OAuth2 client secret that Open edX uses to talk to Entra ID is a credential, so it belongs in your secrets store and in the Tutor configuration only as a reference, never in a committed file. Confirm where your Tutor installation reads it from, who can view it, and what happens to sign-in when it expires. Set a rotation date in your calendar before the secret is created, and test the rotation in a staging environment first.

Supported identity providers

Restricting the enterprise application

In Entra ID, the enterprise application can require that users be assigned to it before they can sign in. Turning on user assignment required means only the groups or people you assign can obtain a token, which keeps anyone else in the tenant from reaching the LMS. Review the assignment list on the same schedule as your other application access reviews.

Conditional access and MFA at the provider

Multi-factor authentication and conditional access policies are enforced by Entra ID before the token is issued, so they apply to the Open edX sign-in only if the policy targets the Open edX enterprise application. Decide which conditions matter for learners and which for staff, such as device compliance or sign-in risk, and confirm that the policy is scoped to the right app. Open edX does not add its own MFA step for federated users, so check what your release exposes before you rely on either layer.

Break-glass path for staff accounts

Keep at least one local administrator account in Open edX that does not depend on Entra ID. If your tenant is locked out, a Conditional Access change goes wrong, or the identity provider is unavailable, that account is the only way back into Django admin and Studio. Store its credentials offline, limit its use to documented recovery work, and test the login path after each configuration change.

Limits of provider-side administrator access

Entra ID roles control who can change the tenant, but they do not control what a signed-in user can do inside Open edX. Course staff roles, Studio permissions and Django superuser status are still managed in the platform. Map any Entra ID admin group to platform roles deliberately, and do not assume that a directory role grants or removes platform rights automatically.

Confirm settings per release

The options for claim mapping, registration behavior and linking of existing accounts depend on the Open edX release and the Tutor version you run. Before you finalize the design, check the identity provider documentation for your release and confirm which settings it exposes, and record the answers in your configuration review. Retest the sign-in flow after each named release upgrade, since the supported settings can change.

Open edX release notes

Why Entra ID sign-in to Open edX fails

This table lists the failures that most often stop Entra ID sign-in to Open edX, with the likely cause, what to check in Entra ID sign-in logs and Open edX logs, and the fix. Work through the rows in order, because a redirect or secret problem hides every later step.

FailureLikely causeCheck in logsFix
Redirect URI mismatchThe redirect URI registered on the Entra ID app registration does not match the LMS callback URL exactly, including scheme, host and trailing slash.Entra ID sign-in log shows AADSTS50011 for the request. Open edX shows no session created after the Microsoft redirect.Copy the callback URL from the Open edX third-party auth settings and register it exactly on the app registration. Retest in a private window.
Expired or wrong client secretThe client secret was copied incorrectly, belongs to another app registration, or has passed its expiry date.Entra ID sign-in log shows an invalid client secret error. Open edX LMS log shows a token exchange failure for the provider.Create a new secret, record its expiry, and store it in your secrets manager. Update the Open edX configuration and restart the affected services.
Missing email claimThe token does not include the email claim Open edX expects, often because the user has no mail attribute or the app does not request the needed scope.Open edX log shows a missing or empty email during account creation. Check the token claims in the Entra ID app's token configuration.Add the email claim to the token configuration and grant the required permissions. Confirm which attribute your tenant populates, such as the primary email or UPN.
Duplicate accounts on linkingA learner already has a local Open edX account with the same email, and the linking step creates a second identity instead of attaching to the existing user.Open edX admin or LMS logs show a second user row for the same address. Compare the stored provider identifiers for each account.Decide the linking rule before go-live, match on a verified email, and merge or relink the duplicate. Confirm the exact behavior in your Open edX release.
Users blocked by Entra ID assignmentThe app requires user assignment, and the signing-in user is not assigned to the enterprise application.Entra ID sign-in log shows a failure for the user with an error about the user not being assigned to the application.Assign the user or group to the enterprise application, or relax the assignment requirement if your policy allows it. Confirm group nesting and licensing conditions.
Wrong tenant or authority URLThe configured authority or tenant ID points to a different directory, or the app is single-tenant but the sign-in comes from another tenant.Entra ID sign-in log shows the tenant in the request differs from the registered tenant. Open edX log shows an issuer mismatch.Set the tenant ID and authority to the directory that owns the app registration. Confirm supported account types on the app.
Clock or session mismatch after sign-inToken validation fails because server clocks drift, or the LMS host name differs from the one used for the session cookie.Open edX log shows token validation or cookie errors after a successful Microsoft prompt. Check host and time sync on the servers.Synchronize server time with NTP and make the public host name consistent across the LMS and the redirect configuration.

Questions buyers ask about Entra ID sign-in for Open edX

How much effort does Entra ID sign-in for Open edX take?

The effort depends mostly on how many applications, tenants and user populations the sign-in must cover, and on how much attribute and account handling the design needs. A single tenant with one staff group and open learner registration is a small configuration exercise. Effort rises when the team must map multiple claims, restrict sign-in to specific Entra ID groups, link existing accounts without duplicates, or serve several organizations from one site. Ask any partner to split the quote into discovery, configuration on both sides, account linking design, and testing, so you can see which part drives the cost.

Can our team configure Entra ID sign-in for Open edX alone?

A team with working knowledge of Open edX, Tutor configuration and Entra ID app registrations can often do the basic setup in house. The risks sit in the details: redirect URIs that must match exactly, the claims Open edX receives, how existing learner accounts are matched, and what happens to accounts when a user leaves the directory. Teams without an identity engineer or without a test environment usually find the account linking and rollback steps the hardest part. Your team can decide after a short proof of concept against a non-production site.

What do we need from our Entra ID and Open edX administrators?

The Entra ID administrator needs to register the application, set redirect URIs, decide which users and groups can sign in, and confirm which attributes Microsoft will release. The Open edX administrator needs to configure third-party authentication, set the site URL and TLS certificate, decide registration and linking rules, and approve how profile fields are written to learner records. Both sides should agree on a test user list, the change window for the cutover, and who can disable the provider if sign-in fails. Write these responsibilities down before work starts.

How long do testing and rollout take, and what sets that?

Duration is set by the number of user populations, the state of the existing accounts, and how many approval cycles your security and identity teams require. Testing should cover new sign-ups, returning learners, staff with elevated roles, users who already have local passwords, and a sign-out and session expiry check. If existing accounts must be linked, plan time for a reconciliation pass on a copy of production data. Ask any partner for a written test plan and rollout schedule rather than a single number, because the schedule depends on your change board and release calendar.

Should we use SAML or OAuth2 for Entra ID sign-in?

Use OAuth2 when Entra ID is the only identity source and you want a simpler registration flow with the provider already built into Open edX. Use SAML 2.0 when your security team requires SAML assertions, when you need signed metadata exchange, or when the same Entra ID tenant already serves other SAML applications with fixed attribute rules. The Open edX third-party authentication documentation lists OAuth2 providers, SAML 2.0, Shibboleth and LTI, and it includes Azure Active Directory among the OAuth2 providers available by default. Confirm the exact provider settings against the version you run before choosing.

Which attributes must Entra ID send so learner records stay correct?

Open edX needs a stable identifier, a verified email address, and the name fields it stores on the learner profile. Problems start when the email claim changes, when users share mailboxes, or when a guest account arrives from another tenant. Decide which claim becomes the unique key before go-live, because changing it later makes linking existing accounts harder. Your engineers should verify the claims in a test sign-in and check how Open edX stores them, since mapping errors appear as duplicate accounts rather than as a sign-in failure.

What happens to learner accounts when someone leaves the organization?

Removing a user from Entra ID blocks new sign-ins, but it does not delete the Open edX account or its course records. Decide whether those accounts stay active, get deactivated through an offboarding process, or keep local passwords for alumni. Entra ID does not replace Open edX account lifecycle decisions, so ask your partner how deprovisioning will be handled and which team owns it. This question often matters more for compliance reviews than the sign-in flow itself.

How DeployOpen scopes and delivers Entra ID sign-in

DeployOpen plans, builds, tests and documents Open edX sign-in with Microsoft Entra ID inside your own infrastructure, so your identity, security and course teams can review each step. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Confirm which Entra ID tenant, app registration and sign-in method (OAuth2 or SAML) your organization uses.
  • Map which user groups sign in with Entra ID, which keep local accounts, and who approves account linking.
  • Write down attribute mapping for email, name and identifiers, and the registration rules for new learners and staff.
  • Agree deliverables, environments and acceptance tests in a written scope before any configuration begins.

How we build

  • Configure the Entra ID provider in a non-production Open edX environment that mirrors your hosting setup.
  • Set up account linking for existing users so accounts are matched by a verified email address, not duplicated.
  • Test sign-in, sign-out, failed sign-in, and denied access paths for staff, instructors and learners.
  • Record the redirect URIs, claim settings and secrets handling so the configuration can be reviewed and rebuilt.

How we hand over

  • Deliver a configuration guide covering Tutor settings, provider values and where secrets are stored.
  • Provide a runbook for certificate or client secret rotation, tenant changes and troubleshooting sign-in errors.
  • Walk your identity and platform teams through the test results, open items and the access model.
  • Document the decisions taken on auto-registration, linking and admin access so audits can trace them.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover.
  • Retest sign-in after each Open edX release upgrade or Entra ID tenant change, under the agreed scope.
  • Confirm with your Microsoft and Open edX documentation which provider settings apply to your versions before go-live.
  • Agree with your team who owns the Entra ID app registration, the Tutor deployment and the on-call path.

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.