Open edX SAML SSO with Shibboleth

Open edX can act as a SAML 2.0 service provider that trusts several campus Shibboleth identity providers at once. This page covers how the integration works, what it needs, and how to configure, map, test and operate it.

On this page

Open edX SAML SSO with Shibboleth: what the integration does

A university or consortium that wants learners to sign in to Open edX with their campus credentials needs the platform to trust each institution's identity provider. Open edX handles this through its third-party authentication, which supports SAML 2.0 and Shibboleth as provider types. Open edX can act as a SAML service provider with several organizations configured as identity providers at once, so a learner with valid credentials at any of them can reach the site. That means the integration is less about a single login connection and more about running a small trust relationship for each institution, all sitting on one Open edX site.

The work breaks into three parts. First, metadata exchange: each identity provider's metadata must be loaded into the Open edX configuration, and the Open edX service provider metadata must be registered with each institution. Second, attribute mapping for name and email: the attributes an institution releases, and the names they use for them, have to be mapped to the Open edX account fields. Campuses often release these under different attribute names or release them only after an agreement is in place, so the mapping must be confirmed against each institution's actual release policy rather than assumed. Third, testing per institution, using test accounts from each campus, to confirm that sign-in, account creation and profile data behave as expected before go-live.

Plan the decisions early. Confirm with each institution which attributes it releases, whether email is always present, and who owns the trust agreement. Decide whether new learners are created automatically on first sign-in or must be pre-registered, and how existing accounts are linked. Confirm the exact Shibboleth and SAML configuration keys against the current Open edX supported identity providers documentation and your Open edX release, because third-party authentication settings are version-sensitive. Ask any implementation partner to price the metadata work, the attribute mapping and the per-institution test cycle as separate line items, since each one changes with the number of institutions involved.

What you need before configuring Shibboleth SSO in Open edX

Shibboleth SSO touches your Open edX release, each campus identity provider, your certificates and your public hostname. Gather these inputs before anyone edits LMS settings, because a gap in any one of them stalls the whole configuration.

A supported named release

Open edX supports only the latest named release, so the platform must run that release before you add SAML settings. Confirm the release in use against the release notes and pin the Tutor and plugin versions that match it. Check the current named release, Verawood, and the next releases, Willow and Xylon, when you plan the timing of any upgrade.

Release notes

Each campus identity provider's metadata

Every campus that will sign learners in needs its SAML metadata file, which describes its entity ID, signing certificate and single sign-on endpoints. Request it from each campus identity team and record which campus owns which entity ID. Metadata changes when certificates rotate, so ask each team how they notify you of updates.

Attribute release agreements

Each identity provider must agree to release the attributes Open edX needs, at minimum a name and an email address, and the attribute names must match what the provider actually sends. Get the release agreement in writing, including which attribute carries the email and whether it can be trusted as a unique identifier. Missing or renamed attributes are a common cause of failed first logins.

Service provider certificates

Open edX acts as the SAML service provider and needs its own signing and encryption key pair, with a certificate that each identity provider will trust. Decide who owns the private key, where it is stored and how it is rotated before the first metadata exchange. Plan a renewal date so a certificate expiry does not lock every learner out at once.

DNS and TLS for the LMS

The identity providers redirect learners back to the LMS hostname, so that name must resolve publicly and serve a valid certificate chain. Use the same hostname in your SAML metadata, your Tutor configuration and your TLS certificate. Mismatched hostnames or an incomplete chain produce login errors that look like identity provider faults.

Test accounts and a staging site

Ask each campus for test accounts that exist in their identity provider and cover staff and learner roles. Build the configuration on a staging Open edX site first, so you can confirm name and email mapping before any production learner signs in. Record the results for each campus, since each provider has its own attribute behavior.

How to configure the Shibboleth SAML provider in sequence

This sequence takes an Open edX site from a plain LMS to one that accepts sign-in from several campus Shibboleth identity providers, with each institution's metadata, attributes and login path checked before the next one is added. The order matters because the service provider metadata must exist before any identity provider can trust it, and attribute mapping must be proven before learners depend on it.

  1. Generate service provider keys and metadata

    Your platform team creates the signing and encryption key pair for the Open edX LMS acting as the SAML service provider, then produces its SP metadata document with the entity ID, assertion consumer service URL and certificate. Confirm the entity ID and callback paths against the current Open edX third-party authentication documentation for your release, because these values must match exactly on every identity provider. The step is done when the metadata file validates and the certificate expiry date is recorded in your certificate inventory.

  2. Exchange metadata with each identity provider

    For each campus, the platform team sends the SP metadata to that institution's Shibboleth administrator and receives the identity provider metadata in return. Ask the campus to confirm the entity ID, signing certificate and the attributes their Shibboleth IdP will release to external service providers, since many campuses control release through attribute resolver rules. The step closes when both sides hold the other's metadata and the campus has confirmed the SP is registered on their side.

  3. Enable the SAML provider in LMS settings

    In the LMS configuration, your engineers enable third-party authentication with the SAML backend and load the service provider keys and the identity provider metadata source you agreed in the previous steps. Keep the setting in a non-production environment first, and restrict the change to a staging LMS so the production sign-in page is untouched. The step is done when the staging LMS shows the SAML login option and its SP metadata endpoint returns the expected document.

  4. Map name and email attributes

    Your team defines how the attributes released by the identity provider map to Open edX account fields, starting with the email address and the full name, and checks that the mapping does not depend on a field the campus may stop releasing. Agree with each campus which attribute carries the stable identifier, because email addresses can change while the account must stay linked. The step closes when a test assertion from one campus populates both fields correctly on a new staging account.

  5. Test a login from a staging account

    A staging learner account at the first campus signs in through the Shibboleth login path, and your team checks the session, the populated profile fields and the account link on the LMS. Repeat with a second staging account to confirm that existing accounts link rather than duplicate, and record the assertion attributes in the test log. The step is done when both test logins complete and the results are signed off by the campus administrator and your platform owner.

  6. Register each institution as a separate provider

    Once the first institution works end to end, your team adds each further campus as its own SAML provider configuration, each with its own entity ID, metadata and attribute mapping, so that a fault at one institution does not affect the others. Your engineers confirm that learners with valid credentials at any configured organization can reach the site, and that the login page presents the correct institutional choices. The step closes when every institution has passed the same test login as the first.

  7. Verify and hand over the configuration

    Your team runs a final check across all configured providers, including a deliberately invalid login to confirm the failure page is clear, then documents the metadata locations, certificate expiry dates, attribute maps and the contact at each campus. Agree a process for certificate renewal and metadata changes before go-live, since each campus must update its side when your keys rotate. The step is complete when the handover document is accepted by the operations owner and the change is approved for production.

Mapping campus attributes to Open edX account fields

This table compares the SAML attributes a campus identity provider typically releases with the Open edX account fields they feed, and shows what to do when names differ or values are missing. Read each row as a decision to settle with the institution before the first learner signs in, because the mapping determines usernames, login matching and the email addresses learners receive.

Open edX fieldTypical campus attribute to requestWhen the institution uses a different nameWhen the value is missing
UsernameeduPersonPrincipalName or a stable local identifierAgree on the attribute the institution releases and confirm it stays constant for each person over timeDo not fall back to a display name; reject the login or ask the institution to release the identifier
Emailmail or eduPersonPrincipalName, depending on the institution's release policyMap the institution's own name for the email attribute in the site's SAML settings, and test with a sample account from each institutionDecide in advance whether the account is created without email, held for review, or rejected, and tell learners what to do
Full namedisplayName, or givenName and sn combinedConfirm which attribute carries the name and whether it is released to every service providerAllow the learner to complete the name on the first sign-in, if your registration flow permits it
Multiple institutionsSame attribute names may differ across institutionsRecord the mapping per identity provider so one institution's naming does not change another's accountsRun the same missing-value rule for every institution so accounts are created consistently
Attribute release policyRequested attributes depend on each institution's release agreementAsk each institution to confirm in writing which attributes it releases to your service providerPlan for institutions that release fewer attributes than requested and document the fallback
Test accountsOne account per institution with full and partial attribute setsCompare the SAML response with the expected mapping before go-liveInclude an account with no email to confirm the chosen rule works

How one Open edX site trusts several institutions

Each campus identity provider is configured as its own SAML provider on the same Open edX site, so a learner with valid credentials at any one of them can sign in. The site acts as the service provider and trusts every configured institution, which means the trust list is the access policy. Before build starts, get each institution's signed metadata, confirm which attributes it releases for name and email, and record who at the institution approved the release. Adding a provider does not change how the others authenticate, but each one needs its own entry in the third-party authentication settings and its own attribute mapping, so plan the mapping per institution rather than assuming one pattern fits all.

The main trade-off is branding. A single shared login page is simpler to run and to test, and one theme change covers every institution. Per-institution buttons and pages make a partner feel recognized, but each one adds template work and another place where a label or logo can drift out of date. Decide this with the institutions involved, and confirm whether your theme can show distinct entries without forking core templates. Account collisions need an equally deliberate answer. Two institutions can issue the same email address to different people, or the same person can hold accounts at two institutions. Decide whether email is ever used to link an existing account, and whether the site keys accounts on the identifier each institution releases. Test this with a deliberately duplicated test identity before any learner data exists.

Adding or removing an institution later is mostly a question of what existing learners keep. Removing a provider should be done by disabling its sign-in entry first, then checking that learners who authenticated through it still reach their enrollments through another method or after a documented reset. Adding a provider should be tested in a staging copy with a test identity from that institution, confirming the attribute mapping and that no existing account is matched by accident. Keep a dated change record of each metadata exchange and each mapping change, because institutions will ask when their users were first able to sign in and auditors will ask who approved each trust relationship. Confirm the exact provider settings and their current behavior against the supported identity providers documentation for your release.

How a Shibboleth login reaches the Open edX LMS

The flow starts in the learner's browser, which opens the LMS sign-in page and picks a campus identity provider from the list of organizations configured on the site. The LMS, acting as the SAML 2.0 service provider, sends the learner to that provider, where the learner signs in with campus credentials. The campus returns a signed assertion carrying attributes such as name and email, and the LMS maps them to a new or existing account. Check the boundary where the assertion crosses from the campus into the platform, since that is where attribute mapping and trust in the metadata matter most.

Learner login from the campus identity provider through the LMS service provider, with the trust boundary marked.

Security controls for SAML SSO on Open edX

A SAML trust relationship between Open edX and campus identity providers is only as strong as the certificates, assertions and admin rights behind it. The cards below cover the controls that keep a multi-organization Shibboleth setup trustworthy over its lifetime. Review each one with your identity team before the first learner signs in.

Certificate ownership and rotation

Decide who owns the service provider signing certificate and each identity provider's signing certificate, and record the expiry date of every one. Metadata exchanged with a campus identity provider carries these certificates, so an expired or unplanned change can lock out a whole organization. Ask each partner how they announce rotations and agree on a window in which old and new certificates are both accepted.

Signed and encrypted assertions

Check whether each identity provider signs its SAML responses and assertions, and whether it can encrypt assertions to your service provider. Signature validation stops tampered or forged assertions from being accepted. Encryption matters when assertions pass through intermediaries or contain personal data. Confirm both settings with each partner in writing, because support varies by identity provider product.

Restricting accepted attributes

Map only the attributes the platform needs, typically a stable identifier, the name and the email address, and reject everything else. Each organization may send different attribute names, so the mapping should be written per identity provider. Verify that a trusted partner cannot set staff or admin status through an attribute, and test with a learner account from each organization before go-live.

Protecting the service provider private key

The service provider private key lets Open edX decrypt assertions and sign requests, so its exposure would let an attacker impersonate the site. Store it in a secrets manager or a restricted file readable only by the service account, not in the Tutor configuration committed to a repository. Limit who can copy it during backups and restores, and plan a rotation with the metadata update described above.

Reviewing who changes identity provider settings

Identity provider configuration is editable in the Django admin, and a change there alters who can sign in. List the admin accounts with permission to edit these records, require named accounts rather than shared logins, and keep an audit trail of each change with a reviewer. Review the list on a set schedule and whenever staff change roles.

Supported identity providers docs

Common Shibboleth SAML failures and how to fix them

This table lists the failures teams most often hit when connecting Open edX to campus Shibboleth identity providers, with the likely cause and the first check for each. Work through the rows in order when a login fails, since the first check often rules out several causes at once.

FailureLikely causeFirst check
Metadata mismatchThe LMS service provider metadata was changed or regenerated after the institution loaded it, so the identity provider no longer trusts the signing certificate or endpoints.Compare the metadata currently served by the LMS with the copy the institution registered, and confirm the entity ID and certificate match.
Expired certificateThe signing or encryption certificate on the service provider or identity provider passed its validity date, so signed assertions fail verification.Check the notAfter date on each certificate in the metadata and confirm the institution's renewal schedule.
Missing email attributeThe identity provider does not release the email attribute, or releases it under a different name than the attribute mapping expects, so account creation stops.Inspect a sample assertion from a test user and confirm the attribute name and that it is released to this service provider.
Clock skewThe LMS or identity provider servers disagree on time, so assertion validity windows appear expired or not yet valid.Compare system time on both servers against a trusted time source and confirm network time synchronization is running.
Wrong entity IDThe entity ID configured in the LMS differs from the value the identity provider has on file, often by a trailing slash or a different hostname.Copy the entity ID character by character from the LMS settings and the identity provider registration and compare them.
Wrong assertion consumer URLThe assertion consumer service URL registered at the identity provider points to a different path, protocol or host than the one the LMS sends.Confirm the URL in the identity provider registration matches the endpoint in the LMS metadata, including scheme and port.
Users locked out after an identity provider changeThe institution replaced its identity provider or entity ID, so existing learner accounts linked to the old identifier no longer match any incoming assertion.Ask the institution for the old and new entity IDs and confirm which identifier the existing accounts were linked to before changing anything.

What drives effort in a single campus and a multi-institution setup

A single campus connecting one Shibboleth identity provider to one Open edX site has the smallest configuration surface. The work centers on one metadata exchange, one set of attribute mappings for name and email, and one round of login testing with the campus identity team. Most of the effort sits in agreeing which attributes the campus releases and in confirming how existing learner accounts will be matched.

  • One trust relationship: a single metadata exchange and certificate handling step with the campus identity office.
  • Fixed attribute set: name and email mapping is agreed once and tested against a small set of test accounts.
  • Short test cycle: one or two rounds of login testing usually cover the path learners will take.
  • Limited support load: one help channel for sign-in failures, with a clear owner on the campus side.
  • Lower change exposure: later changes touch one provider and one set of rules.

Check with the campus identity team which attributes they release, in what format, and who approves changes to that release.

Questions buyers ask about Open edX Shibboleth SSO

What does Open edX Shibboleth SSO work cost, and what drives the price?

The price is set by the written scope, not by a list, because DeployOpen does not publish a price list and a quote follows from the agreed scope. The main cost components are the configuration of the Open edX service provider, the metadata exchange with each campus, attribute mapping for name and email, testing with each identity provider, and handover documentation. Cost rises with the number of campuses, the number of attribute differences between them, and whether a campus needs custom logic. Ask any provider for a quote that separates one-time work from recurring support, and confirm which campus-side tasks are yours.

How long does a Shibboleth SAML integration usually take?

Duration depends on how quickly each campus returns its metadata, confirms its attribute release and provides test accounts, so campus response time is often the longest step. No fixed timeline is given here. The work divides into a platform setup phase, one exchange cycle per campus, and a testing phase for each identity provider. Ask for a timeline in the written scope and confirm with each campus how long its federation or change process takes before you commit to dates.

What must our organization provide before the work starts?

You need to supply the inputs that only your institution and each campus can give. These usually include:

  • The SAML metadata for your Open edX site, including the entity ID and the assertion consumer endpoint you plan to use.
  • Each campus identity provider's metadata file, plus confirmation of the trust agreement that covers your site.
  • A written attribute agreement stating which attributes are released for name and email, and in what format.
  • Test accounts at every identity provider, covering staff, learner and error cases.

Confirm the exact attribute names and release policy with each campus, since they vary between federations.

Can our internal team set up Shibboleth SSO without a partner?

Yes, a capable identity or platform team can do it, provided it has someone who understands SAML metadata, Django settings for third-party authentication, and the Open edX deployment. The harder parts are usually coordination with several campuses, debugging attribute release, and keeping the configuration correct through platform upgrades. Assess your team against those three areas. If the gap is in SAML or in Open edX operations, a fixed-scope engagement can cover the build and hand over documented steps your team can run.

How do we add a new campus identity provider later?

Adding a campus is a repeatable change if the first setup was built to accept several identity providers on one site. The steps are to obtain the new campus metadata, agree the attribute release, add the provider to the site configuration, and test with that campus's accounts before users rely on it. Each new provider should also be checked for how it handles account linking with existing users. Ask any partner to document the procedure and confirm which parts your team can repeat without a change request.

What does ongoing maintenance of Shibboleth SSO involve?

Maintenance is recurring work that continues after launch. It includes renewing and replacing signing certificates and metadata when campuses change them, reviewing attribute release after campus policy changes, re-testing sign-in after Open edX upgrades, and monitoring failed logins. Since the latest named release is the only supported release, plan an upgrade path and budget for retesting each time you move to a new release. Ask whether support is a fixed retainer or billed per request, and what response expectations come with it.

What security checks should we ask for on the SSO setup?

Ask for evidence that the service provider configuration validates signed assertions, that only approved identity providers are trusted, and that attributes are limited to what the campus agreed to release. Also ask how account linking prevents one person from taking over another's account, and how sign-in failures are logged. DeployOpen can test these areas as part of a security review. It does not issue audit reports or certifications, so any formal assurance must come from an independent auditor.

How DeployOpen scopes and delivers Open edX SAML SSO

DeployOpen plans, builds, documents and supports Open edX SAML SSO with Shibboleth inside your own infrastructure, so the identity configuration sits under your control. Each engagement starts from a written scope that names your identity providers, attributes and test accounts before any configuration changes are made.

How we scope

  • Inventory the campus identity providers, their metadata owners and the change process for each one.
  • Agree which name and email attributes each identity provider releases, and how missing values are handled.
  • Record the written scope, deliverables and timeline before work starts, since engagements are fixed-scope.

How we build

  • Configure the Open edX service provider settings and exchange metadata with each organization's identity provider.
  • Map SAML attributes to LMS account fields and test sign-in with accounts from every participating organization.
  • Test failure paths, including expired certificates, missing attributes and unknown users, before go-live.

How we hand over

  • Document the metadata exchange steps, attribute mappings and the procedure for adding a new organization.
  • Walk your identity and operations teams through certificate renewal and the sign-in troubleshooting runbook.
  • Deliver the configuration and test evidence in a form your security and compliance reviewers can check.

How we support

  • Support ongoing changes such as new identity providers, metadata updates and Open edX upgrades as a retainer.
  • Retest sign-in after each platform upgrade or identity provider change against the agreed test cases.
  • Confirm with your identity providers how long metadata changes take to propagate before you schedule them.

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.