XWiki and Microsoft Entra ID single sign-on

A self-hosted XWiki can let staff sign in with their Microsoft Entra ID accounts through the XWiki Microsoft Entra ID OpenID Connect extension, with group sync and allowed and forbidden groups. This page covers the app registration, the HTTPS requirement, the configuration sequence, and the failure points to test before cutover.

On this page

XWiki Microsoft Entra ID single sign-on: how the login flow works

The supported way to sign in to self-hosted XWiki with Microsoft Entra ID accounts is the Microsoft Entra ID OpenID Connect extension from the XWiki Store page for the Microsoft Entra ID OpenID Connect extension. It sends users to Entra ID to authenticate, so staff sign in with their work credentials and no longer need local wiki passwords, and it maps their Entra ID group memberships to XWiki groups. The extension can also restrict access by group: members of allowed groups can sign in, and members of forbidden groups are refused. Confirm how allowed and forbidden groups interact in the extension's documentation before you write the access policy, because the group rules in Entra ID and in the extension together decide who gets in.

Group sync is optional, and it is where the two systems can disagree. With group sync enabled, the extension checks a user's memberships against Entra ID and removes the user from mapped XWiki groups when it detects a mismatch. Before rollout, decide which Entra ID groups map to which XWiki groups, who owns each Entra ID group, and which wiki groups will stay managed only inside XWiki. Test a removal with a pilot account first, since a user losing a wiki group can cut off access to spaces they rely on. Record the sync decision in your access documentation, because wiki owners and auditors will ask why a person's access changed.

The extension does not replace XWiki's authorization model. Page rights, space rights and wiki administration stay in XWiki, so a person who signs in through Entra ID still gets only what their XWiki groups and page rights grant. Keep a local administrator account that the extension does not control, and test it before go-live, so a misconfigured sign-in cannot lock every administrator out. The wiki must run XWiki 15.10 or above over HTTPS, and the Azure app registration must supply a client ID, tenant ID and secret. Confirm both requirements against the extension page before you schedule the upgrade or the certificate work.

What you need before you register the app in Entra ID

These six items decide whether the app registration and extension configuration succeed on the first attempt. Settle the XWiki version, the hostname and the group design first, because the redirect address and group mapping are hard to change once users depend on them.

XWiki 15.10 or later

The Microsoft Entra ID OpenID Connect extension needs XWiki 15.10 or above, so this is the first gate. Check the compatibility statement on the extension's Store page against the XWiki version you plan to run after any upgrade, since the install and the upgrade need to be scheduled together. Confirm that your current instance can reach that line through a supported upgrade path before you start the app registration work.

Extension Store page

HTTPS wiki on a stable hostname

The extension requires an HTTPS wiki, so the public address must be settled before anything is registered. The redirect URI you register in Entra ID must match the wiki URL exactly, including scheme, host and path, so a hostname change later means updating both the registration and the extension settings. Choose the final production name, confirm that its certificate chain is trusted by users and by the wiki server, and avoid addresses tied to a single machine or a temporary load balancer.

Tenant and app registration rights

You need the Entra ID tenant ID and an administrator who can register applications and create a client secret. Confirm with your identity team that this person holds both rights in the tenant and that the secret lifetime policy fits your rotation rules. Store the client ID, tenant ID and secret value in your secrets vault as they are created, because the secret value is usually shown only once and a lost value means creating a new secret and updating the wiki configuration.

Group design agreed in advance

Decide which Entra ID groups grant access and which block it before you register the app. With group sync enabled, the extension checks memberships against Entra ID and removes users from mapped XWiki groups when it detects a mismatch, so a group that is missing or left out of the token claims can strip access from people who should keep it. Write down the allowed and forbidden groups, the owner of each group, and how membership changes are approved.

Outbound network reachability

The wiki server itself has to reach Entra ID sign-in endpoints over HTTPS. Check egress firewall rules, proxy settings, DNS resolution and any TLS inspection on the wiki's network segment, and confirm which endpoints your tenant and the extension require. Test from the wiki host itself, using the same resolver and proxy that the Tomcat process uses, because a successful test from an administrator workstation proves little about the server. Ask your network team to record the rules in the change request.

Staging wiki and local admin

Build a staging wiki on the same extension version with a copy of the production group design, and prove the sign-in and group removal behavior there first. Keep a local XWiki administrator account that does not depend on Entra ID, with its password held in your vault, so you can recover if the OpenID Connect settings lock out users. Confirm that local login works before you enable the Entra ID configuration on production.

Sign-in moves from the browser to Entra ID and back to the wiki callback

The sign-in starts when the user browser requests a protected page and XWiki redirects it to Microsoft Entra ID. Entra ID handles the sign-in and consent, then returns the browser to the wiki callback with an authorization code. The extension exchanges that code for tokens on the server and reads the group claims. With group sync enabled, the check has three outcomes: an allowed group lets the user in, a forbidden group denies access, and a mismatch removes the user from the XWiki groups mapped to Entra ID groups. Before testing, confirm the HTTPS wiki address, the redirect URI in the app registration and the group mapping.

Sign-in sequence with group decision points and trust boundaries.

Configuring Entra ID single sign-on in XWiki, step by step

This sequence takes a self-hosted XWiki from an unconfigured wiki to one where Microsoft Entra ID accounts sign in over HTTPS, and group membership decides who can enter. Each step ends with a check you can confirm before moving on. Take exact field names from the extension documentation for the version you install.

  1. Register the application in Entra ID

    An Entra ID administrator registers a new application in the Microsoft Entra admin center for the XWiki instance, choosing a name your users will recognize on the sign-in screen. Record the tenant ID and the client ID from the application overview page, and keep them with your change record. Check: both values are copied into your configuration notes and match the overview page exactly, with no truncated characters.

  2. Create a client secret and store it

    In the app registration, create a client secret and copy its value at the moment it is shown, because Entra ID does not display it again. Store the value in your secrets manager with a restricted access list, and record the expiry date Entra ID assigns so someone owns the renewal. Check: the secret is retrievable from the secrets manager by the people who deploy XWiki, and no copy remains in a ticket, chat or wiki page.

  3. Set the HTTPS redirect URI

    In the app registration's authentication settings, add a web redirect URI that points to the callback address documented by the Entra ID extension, using the HTTPS hostname that users will type into their browser. The hostname and port must match the wiki's public address exactly, because Entra ID compares the redirect exactly. Check: the URI in Entra ID matches the callback address in the extension documentation character for character, and the wiki address loads with a valid certificate.

  4. Confirm the wiki version and HTTPS

    Check the installed XWiki version in the administration interface and confirm it is 15.10 or above. Confirm the wiki loads over HTTPS on its public hostname. If TLS ends at a reverse proxy or load balancer, confirm that it forwards the original scheme and host so generated links use HTTPS. Check: the version reads 15.10 or higher and the login page loads with no mixed-content warnings or certificate errors.

  5. Install the extension on staging

    On a staging wiki that matches production, open the XWiki Store page for the Microsoft Entra ID OpenID Connect extension and install it through the extension manager, using the version that supports your wiki release. Keep production untouched until staging passes every test in this sequence. Check: the extension is listed as installed on staging, and the wiki still starts and loads its home page without errors.

  6. Enter client ID, tenant ID and secret

    Open the extension's settings on staging and enter the client ID, tenant ID and client secret value from the first two steps, using the exact field names listed in the extension documentation. Confirm with the documentation whether the secret belongs in the settings form or in a referenced configuration file, and keep it out of version control. Check: a sign-in attempt on staging redirects to the Microsoft sign-in page and returns to the wiki after authentication.

  7. Enable group sync and set group rules

    Turn on group sync in the extension settings, then list the Entra ID groups allowed to sign in and the groups that are forbidden. Use the group identifiers the documentation requires, copied from the Entra ID group overview pages. With sync enabled, the extension checks memberships against Entra ID and removes users from mapped XWiki groups when it detects a mismatch, so confirm which Entra groups map to which XWiki groups before you save. Check: the saved settings show exactly the allowed and forbidden groups you approved, with no empty or mistyped group identifiers.

  8. Test member, non-member and forbidden users

    On staging, sign in with three accounts: a member of an allowed group, a user in no allowed group, and a user in a forbidden group. The first should reach the wiki with the expected XWiki group memberships, the second should be refused, and the third should be refused access. Also confirm how the extension treats a user in both an allowed and a forbidden group, since the documentation governs that case. Check: the three results match your written test plan, and you have recorded them before the production change is scheduled.

How group sync removes access when Entra ID memberships change

With group sync enabled, the Entra ID OpenID Connect extension checks a user's memberships against Entra ID and removes that user from the mapped XWiki groups when it detects a mismatch. A change made in Entra ID, such as removing someone from a security group, can therefore take wiki access away without any change on the XWiki side. Treat the group mapping as an access control decision. Each XWiki group that grants read, edit or admin rights should map to an Entra ID group that a named owner maintains, and each entry should be recorded with its reason. Confirm how often your deployment evaluates membership, since the timing of a removal depends on it. The XWiki Store page for the Microsoft Entra ID OpenID Connect extension is the starting point for the settings involved.

The allowed groups setting is meant to limit sign-in to members of the listed Entra ID groups, and the forbidden groups setting is meant to block members of the listed groups. The two lists interact, so a user who appears in both needs a defined outcome. Confirm the exact evaluation order in the version you deploy before relying on either list, and test a user in both lists in staging. Also confirm how nested groups are handled. If a user reaches a group through another group, you need to know whether the extension sees that membership, because the answer decides whether the mapping matches what your directory shows. Write the expected result for each case in a table before you configure the lists.

Group overage is the other check to make. When a user belongs to many groups, Entra ID may not include the full group list in the token, so the extension could work from an incomplete picture of that user's memberships. Ask your tenant administrator whether overage can occur for your users and how it is handled, and check that behavior in your own tenant instead of assuming it. Before enabling sync on production, test removal in staging: add a test user to a mapped group, sign in, remove the user from the group, and confirm that the wiki group is removed and the expected access is lost. Repeat the test for forbidden and nested groups, and keep the results with your change record.

Which Entra ID values map to XWiki users and groups

This table compares each Entra ID value that sign-in depends on with the XWiki side it affects and what the extension uses it for. Read it as a list of decisions to make and checks to run before go-live, since exact field behavior is defined by the extension documentation. Confirm every mapping on a test tenant first, because group sync can remove users from mapped XWiki groups when memberships do not match.

Entra ID valueXWiki sideHow the extension uses itWhat to confirm
User identity used to match the XWiki accountXWiki user account and login nameIdentifies the signed-in Entra ID user and links the sign-in to an XWiki accountWhich claim is matched, and whether existing XWiki accounts are reused or new ones created
Profile fields such as name and emailXWiki user profile fieldsValues supplied by Entra ID are written to matching profile fields when the extension provides themWhich attributes are supplied, and whether profile values refresh on every sign-in
Group identifiers mapped to XWiki groupsXWiki groups that grant page rightsEntra ID group memberships are matched to the XWiki groups listed in the mappingIdentifier type expected (object ID or name), and that each target XWiki group exists
Allowed groupsSign-in access to the wikiUsers must belong to a listed group to be admittedWhat happens when the list is empty, and whether nested group membership counts
Forbidden groupsSign-in access to the wikiMembers of a listed group are refused accessWhich rule applies when a user is in both allowed and forbidden groups
Group sync removalsXWiki group membership of existing usersWith group sync enabled, users are removed from mapped XWiki groups when a mismatch is detectedWhen removal takes effect, tested with a dedicated user removed from an Entra ID group
Client IDExtension configuration for the wikiIdentifies the Azure app registration the extension signs in withCorrect value for each environment, and that the redirect address matches the wiki's HTTPS URL
Tenant IDExtension configuration for the wikiSelects the Entra ID tenant whose users and groups are checkedThe tenant that holds your users, and how guest accounts are handled
Client secretCredential stored in the wiki configurationLets the wiki authenticate to Entra ID during the sign-in exchangeExpiry date, rotation owner, and who can read the stored value

Choosing an access model for allowed and forbidden groups

With no group restriction, any account in the Entra ID tenant that completes sign-in can reach the wiki. No allowed or forbidden group is configured, so group sync has no membership check to enforce, and access depends on the XWiki rights granted to new profiles and to groups that already exist inside the wiki. This model suits content meant to be readable across the whole organization.

  • Who can sign in: every account the tenant authenticates, including any guest accounts your tenant policy allows to reach the application. Confirm guest handling in your tenant settings.
  • What group sync does: no allow or deny decision. Mapped XWiki groups can still assign rights, but no group membership blocks a sign-in.
  • Main risk: a wiki planned for one team becomes visible to everyone the tenant admits, and each first-time sign-in creates a profile.
  • Default rights: check whether new profiles inherit read access through default XWiki groups or guest settings.

Before you choose this model, confirm which accounts the tenant can authenticate and which rights a new profile receives on first sign-in.

Hardening Entra ID sign-in on a self-hosted XWiki

Entra ID sign-in adds an identity dependency to a wiki that many teams treat as an internal record. The controls below cover transport, the client secret, the app registration, the administrative fallback, group offboarding and logout, and each one should be tested on the wiki you actually run.

Serve XWiki over HTTPS only

The extension requires an HTTPS wiki, so serve every XWiki address over HTTPS with a valid certificate from a trusted authority, usually on the reverse proxy or load balancer in front of Tomcat. Check that no plain HTTP listener, redirect or alternate hostname can reach the login page. Match the redirect URI exactly between the app registration and the public HTTPS address, including the path, so the sign-in callback goes only to the address users type.

Entra ID extension page

Store the client secret securely

The extension uses a client secret to authenticate to Entra ID, so anyone who holds it can act as the application. Store the secret in a secrets manager your platform team already runs, inject it into the XWiki container at startup, and keep it out of wiki pages, Git repositories and image layers. Set the expiry date in Entra ID when the secret is created, record the rotation date with a named owner, and rehearse a rotation on a test wiki before the old secret expires.

Scope the app registration tightly

Create a dedicated app registration for this wiki, so a secret change or consent decision affects only this application. Request only the sign-in and group permissions the extension documentation calls for, and record who granted admin consent and when. Review the permissions again at every XWiki upgrade, because an upgraded extension may need different permissions.

Keep a local administrator path

Entra ID sign-in should not be the only way into the wiki. Keep a local XWiki administrator account with a strong, stored password that does not depend on Entra ID, and test the recovery path before go-live: log in with the local account, confirm admin rights, and log out. Restrict who can change the extension settings to a named admin group, because a changed allowed or forbidden group setting changes who can enter the wiki.

Test forbidden-group offboarding

With group sync enabled, the extension checks memberships against Entra ID and removes users from mapped XWiki groups when it detects a mismatch. Test this with a dedicated test account: add the account to a forbidden group in Entra ID, confirm it loses access to the restricted spaces, then remove it again. Record how long the change takes to take effect in your setup, and repeat the test after each XWiki or extension upgrade.

Confirm what logout ends

Logging out of XWiki ends the wiki session, but whether the Entra ID session in the browser also ends depends on the extension's logout behavior and the session settings in your tenant. Test the full sequence in a clean browser: sign in, log out of XWiki, then open the wiki address and see whether Microsoft asks for credentials again. Confirm where the post-logout redirect lands, and decide whether shared machines need a separate Entra ID sign-out step.

Why Entra ID single sign-on to XWiki fails and how to fix it

This table lists common Entra ID sign-in and group sync failures in XWiki, with the likely cause and fix for each. Read each row by matching the symptom first, then checking the cause in your app registration, wiki configuration and proxy settings. The main takeaway is that many failures trace back to the redirect URI, HTTPS address, tenant ID or client secret, so check those four settings before you change group mapping.

SymptomLikely causeFix
Redirect URI error at Entra ID sign-inThe redirect URI registered in the app registration does not match the wiki's public HTTPS address, including scheme, host, port or path.Register the exact callback URL the extension expects on the public HTTPS address, then retry sign-in.
Sign-in loop or mixed content after a proxy or TLS changeA reverse proxy or TLS change means XWiki sees the wrong scheme or host, so redirects and page assets break.Terminate TLS at the proxy, pass the public host and scheme headers, and confirm the wiki's configured URL is HTTPS.
Extension missing or sign-in fails after an upgradeThe wiki runs below XWiki 15.10, or the extension version is not compatible with the installed XWiki release.Upgrade to XWiki 15.10 or above first, then install an extension version confirmed compatible in the XWiki Store listing.
Users sign in but receive no groupsThe token carries no group claim, or the users are not assigned to the enterprise application.Add the group claim to the token configuration, assign users to the app, and check the mapping uses the identifiers Entra ID sends.
Users removed from wiki groups after a membership changeGroup sync is enabled, so the extension checks memberships against Entra ID and removes users from mapped XWiki groups when it detects a mismatch.Make Entra ID the source of truth, apply membership changes there, and review mapped groups before enabling sync.
Sign-in against the wrong tenantThe configured tenant ID belongs to another directory, so sign-in goes to the wrong tenant or is rejected.Copy the tenant ID from the directory that holds your users, and recheck it in the wiki configuration after any change.
Sign-in fails after the client secret expiresThe client secret in the wiki configuration has expired or was replaced in the app registration.Create a new secret in the app registration, update the wiki configuration, and set a renewal reminder before the expiry date.

What buyers ask about Entra ID single sign-on for XWiki

What does Entra ID single sign-on for XWiki cost to set up?

Cost depends mainly on the internal time your team spends and on whether you buy outside help. The internal work covers the Azure app registration, a staging test, group design for allowed and forbidden groups, and user acceptance testing with test accounts. Each step needs a tenant administrator and an XWiki administrator, so most of the hours fall on people you already employ. Outside help is optional and is billed separately. XWiki SAS lists consulting at 1200 EUR per day on its pricing page, and that rate requires a Business or Enterprise support plan, so check current terms before you budget. DeployOpen quotes follow from a written scope. Ask the quote to separate one-time setup work from any recurring support you choose to add, and ask for the number of environments, the group count and the testing effort included.

How long does Entra ID sign-in setup for XWiki take?

Duration depends on how many environments you must cover, how complex your group model is, and how strict your change control is. A single production wiki with a small set of Entra ID groups moves faster than a setup that needs development, staging and production instances, each with its own redirect address and group mappings. Group complexity adds time because every allowed or forbidden group has to be tested with real accounts. The extension removes users from mapped XWiki groups when group sync detects a mismatch, so the expected behavior must be agreed before testing starts. Change control adds time through approvals, maintenance windows and secret rotation procedures. Ask for a schedule that lists each environment, each approval gate and the test accounts that will be used, and ask for the milestones in writing before work starts.

Can our own IT team set up Entra ID single sign-on for XWiki?

Yes, a team can do this in-house if two roles are covered. You need a tenant administrator who can register the application in Microsoft Entra ID and create the client secret, and an XWiki administrator who can install the extension, set its configuration and manage XWiki groups. The extension needs XWiki 15.10 or above, an HTTPS wiki and an Azure app registration that provides a client ID, tenant ID and secret, so confirm those prerequisites before you start. The work is mostly configuration and testing, so experienced administrators of both systems can handle it. Teams often bring in outside help for group design, because mapping allowed and forbidden groups correctly determines who can get into the wiki. Decide early who owns the secret rotation schedule and who approves group changes after go-live.

What do you need from us before Entra ID SSO setup starts?

Before work starts, you provide four things: tenant access, the group list, the HTTPS hostname of the wiki and test accounts. Tenant access means a named administrator who can register the application and grant the permissions the extension needs in your Entra ID tenant. The group list should show which Entra ID groups are allowed to sign in, which are forbidden, and which map to XWiki groups, with a named owner for each group. The HTTPS hostname must be the address users will type, because the redirect address registered in Entra ID has to match it exactly. Test accounts should cover an allowed user, a forbidden user, a user in no group and a user who changes groups during the test. Agree on who receives the client secret and where it is stored, so the secret is never sent by email.

Is the Microsoft Entra ID OpenID Connect extension for XWiki free?

The licensing terms are published on the extension page in the XWiki Store, so confirm the current license there before you rely on it being free. A free install does not mean the setup has no cost, because internal time, testing and any outside consulting still apply. Check whether the license covers your intended use, which XWiki versions it supports and whether future updates to the extension are included. Ask DeployOpen or XWiki SAS to confirm the terms for your edition, because XWiki Pro packages several business applications and connectors, so check whether the Entra ID extension is included in your edition. Keep a copy of the license terms in your change records, so your procurement team and auditors can see which terms applied on the date of installation.

Who signs off on the Entra ID setup and its evidence?

Your organization signs off on the setup. DeployOpen prepares the configuration, the test results and the evidence your reviewers ask for, such as records of group mappings, test outcomes and change approvals. Independent auditors issue any assessment, attestation or certification, and DeployOpen does not issue those. Your compliance lead should confirm which controls the evidence supports before the work starts, because a single sign-on setup can relate to several control areas. Ask for the evidence list in writing as part of the scope, so the acceptance criteria are clear. Your security team should review the final configuration, the secret handling and the admin roles before production sign-in is switched on. Sign-off belongs to the people accountable for access in your environment.

Which XWiki version does the Entra ID extension need?

The Microsoft Entra ID OpenID Connect extension needs XWiki 15.10 or above. It also needs the wiki to be served over HTTPS, because the sign-in redirect must use a secure address. Confirm your current XWiki version before you plan the change. If your instance is older, the upgrade becomes part of the scope and should be planned and tested separately from the sign-in work. Check the release notes of the XWiki line you plan to run, and confirm that any other extensions on the instance support that version. Also confirm that your reverse proxy passes the correct host and protocol headers, because a mismatch there can cause sign-in redirects to fail.

How DeployOpen scopes and delivers Entra ID sign-in for XWiki

DeployOpen approaches XWiki and Microsoft Entra ID single sign-on as a scoped piece of work inside your own infrastructure. We confirm the wiki version, HTTPS endpoint and Entra ID tenant set-up before any build starts, then configure the Entra ID OpenID Connect extension with app registration, group mapping and tested sign-in paths. Engagements are fixed-scope, with the written scope, deliverables and timeline agreed in writing before work begins.

How we scope

  • The written scope confirms the XWiki version (15.10 or above) and an HTTPS hostname for the wiki.
  • Scope lists the Entra ID tenant, allowed and forbidden groups, and the XWiki groups each one maps to.
  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing can follow under a retainer.

How we build

  • Register the wiki as an Entra ID app and record its client ID, tenant ID and client secret.
  • Configure allowed and forbidden groups and the group sync, so XWiki access follows Entra ID memberships.
  • Test removal by taking a user out of a mapped Entra ID group and checking the XWiki group.

How we hand over

  • Written documentation covers app registration settings, the extension configuration and the group mapping table.
  • Sign-in test results for allowed, forbidden and unmapped users, with the steps to repeat them.
  • Operating notes for rotating the client secret and reviewing group mappings after organizational changes.

How we support

  • Upgrade planning checks that the Entra ID extension supports the XWiki version you move to before you upgrade.
  • Retainers can cover ongoing support, upgrades and continuous testing of the sign-in path.
  • Security testing can cover the sign-in path, HTTPS configuration and admin settings in your environment.

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.