Moving from Jitsi secure domain to JWT authentication: what the change involves
If your self-hosted Jitsi still runs the secure domain, users create rooms by logging in with a username and password on the Jitsi server itself. The move replaces that account-based room creation with signed JWT tokens issued by your own identity or application system, and the effort depends on two things: how many systems issue identity for meetings, and how many users must change how they start a meeting. The Jitsi handbook marks the secure domain as deprecated for new installations and recommends JWT token authentication, with a separate anonymous domain for guests. That means the change is not only a configuration edit. It also decides who can create rooms, who can join as a guest, and where each token is minted.
Start by inventorying every place a meeting is created or joined: the internal portal, an intranet page, a calendar integration, an embedded application or a scheduling tool. Each of these either already has a trusted user identity or will need one, and each will need code or configuration that signs a token carrying the user's name, email, room and moderator status. Confirm with your engineering team who owns the signing key, how it is stored and rotated, and whether the signing system is the same one your staff use for single sign-on. Check the current Jitsi handbook entry for token authentication before writing the token claims, because the expected fields and the way the server validates them are the details most likely to change between releases.
Plan the Prosody and Jicofo side as a separate workstream. The secure domain depends on local accounts in the XMPP server, so you need to know which accounts exist, which of them are moderators, and which users will need a token instead. Decide how guests will reach the anonymous domain, and whether the lobby, room passwords or moderator controls should be set before cutover. For the cutover itself, schedule a window in which existing meeting links keep working, communicate the new way to start a meeting in advance, and keep the old accounts available until every team has confirmed a working token flow. Ask any partner for a written list of which of these steps they will perform, which you will perform, and how they will test the result against your real users.
Which secure domain settings map to JWT and which need redesign
This table compares each secure domain element with its JWT, anonymous domain or Docker .env equivalent, and flags where no one-to-one mapping exists. Read the rows marked for redesign first, because they decide how much of your meeting access model you will rebuild rather than reconfigure.
| Element | Secure domain today | JWT or Docker equivalent | Action and what to confirm |
|---|---|---|---|
| Room creation | Internal XMPP account logs in on the main domain and creates rooms | Caller presents a signed JWT that grants access to a named room | Map each account to an identity your IdP issues. Confirm token claims in the token authentication handbook page. |
| Main domain login flow | Login page on the main domain with username and password | Tokens are issued by your own service and validated by Prosody | Plan the token issuing service and its key handling. Confirm the expected token fields in the handbook. |
| Guest access | Unauthenticated users join through the main domain | Guests join through the anonymous domain without a token | Confirm the anonymous domain setup in the handbook and test guest join with and without tokens. |
| Moderator roles | Account holders become moderators on the rooms they create | Moderator status is set by a token claim | Confirm which claim controls moderator rights and how your issuer sets it for each user. |
| Room links | Existing links work as long as the room exists on the server | Room links work only with a valid token or the guest path | Recurring links may need re-issuing. Confirm with users which links must keep working during cutover. |
| Meeting-owner rules | The creating account owns the room by default | No direct equivalent in the token alone; ownership must be modeled in your issuer | Redesign needed. Decide who may create which room names and record that policy in your issuer. |
| Docker .env authentication | Internal XMPP accounts are the default option | The Docker guide lists internal accounts, JWT, LDAP, Matrix and a hybrid Matrix plus JWT mode | Confirm the exact .env keys for your release in the Docker guide before changing them. |
| Mixed user population | Single login path for all staff | Staff may need JWT while guests stay on the anonymous path | Test both paths in staging. Confirm how the hybrid options in the Docker guide fit your mix of users. |
Documented paths and settings used for the switch
Jitsi documents authentication in a few places: the Docker .env file, the token authentication handbook page, the Prosody and Jicofo configuration, and the anonymous guest domain. Each card below names one of these paths and what to confirm in the release you run before you change anything.
Authentication mode in the Docker .env file
The Jitsi Docker guide lists internal XMPP accounts, JWT tokens, LDAP, Matrix user verification and a hybrid Matrix plus JWT mode, all selected through the .env file. For this switch, the setting that matters is the one that enables JWT alongside the guest behavior you want. Confirm the exact variable names and accepted values in the Docker guide for your release, because the setting changes how the web and Prosody containers are configured on restart.
Token authentication handbook page
The token authentication page describes how a signed JWT carries the user identity, room and moderator flag that Jitsi checks before admitting a participant. It is the reference for the token claims, the audience and issuer values, and the signing key expectations. Read it against your release before you write the signing service, since claim names and required fields are the most common source of rejected joins.
Token authentication docsProsody token validation settings
Prosody is the XMPP server that validates tokens for the main domain. Its virtual host configuration must reference the same application identifier, audience and secret that your token issuer uses, and it must match the domain names your users type into the browser. Confirm in your release how the Docker setup generates this configuration from the .env file and whether any custom Prosody file overrides it.
Jicofo settings for room access
Jicofo, the conference focus component, creates rooms and decides which participants join them, so it must agree with Prosody on how authenticated users are handled. Settings here control whether unauthenticated users can create rooms and how the focus component treats the authentication domain. Check each Jicofo option in your deployed version, and test a room created by an authenticated user and one created by a guest before cutover.
Anonymous domain for guests
The handbook recommends a separate anonymous domain so guests can join without a token while your main domain requires one. Guests reach the meeting through a dedicated XMPP domain that Jicofo and Prosody treat differently. Confirm how the release you run names and configures this domain, and verify that guest joins work through the web app and the mobile clients before you tell users their links will still open.
Secure domain docsDeprecation status of secure domain
The handbook marks the older secure domain, which used username and password room creation, as deprecated for new installations. Existing installations that still depend on it should plan removal rather than assume it will keep working through future releases. Confirm in your release notes whether the secure domain path still functions, and record the date you intend to disable it so the cutover plan has a fixed end point.
How JWT tokens replace room creation by login
JWT authentication moves the decision about who may enter a room out of Jitsi and into your own application. Under the older secure domain setup, a user typed a username and password on the Jitsi main domain to create a room. With JWT, your organization's application or portal first authenticates the user through its existing login, then signs a token that describes the room, the user and whether that user is a moderator. The signing uses a shared secret or key that only your application and Jitsi know. When the user opens the meeting, the browser presents that token, and Prosody checks its signature and claims before the user is admitted. Jitsi itself never needs to know the user's password.
The main domain should stop accepting direct username and password room creation once your token flow works, because a login form there becomes a second, weaker front door that bypasses your identity controls. The handbook marks secure domain as deprecated for new installations and recommends JWT, so treat its retirement as part of the plan, not an optional cleanup. Guests are handled separately. The handbook describes a separate anonymous domain for people who join without a token, and this keeps guest access on its own path and out of the authenticated domain. Before you decide who may use guest access, confirm in the token authentication handbook page how the anonymous domain is configured in your deployment, since the exact settings depend on your release and install method.
Plan the signing key as a controlled secret from the start. Whoever can read the shared secret can mint a valid moderator token for any room, so decide who holds it, where it is stored and how it is rotated before the first token is issued. Also decide how long tokens remain valid and which application issues them, because an expired or misissued token will block legitimate users during cutover. Test the full path, from a successful login in your portal to a joined meeting, with both a participant and a moderator account, and confirm the claim names and token fields against the handbook page before writing any code.
How a JWT-authenticated join flows through the stack
The flow starts at the organization's identity system, where a signed-in user gets a token from the portal that issues them. The browser then presents that token to the web server, and Prosody checks it before Jicofo and the videobridge set up the conference. Guests take a separate path through the anonymous domain with no token, which is why the two paths must stay apart in your configuration. Check that the token signing key, audience and room claims match what Prosody expects, and confirm that guests can only reach rooms you intend them to join.
Authenticated users carry a signed token into the stack, while guests join through the anonymous domain.
Cutover sequence from secure domain to JWT
This sequence moves existing room creators and integrations from username and password secure domain access to JWT-authenticated meetings without a single abrupt switch. Each step produces a checked artifact, so the cutover of the main domain happens only after a tested path and a communicated change.
Inventory room creators and integrations
List every person, group and system that creates or joins rooms on the current secure domain, including scheduled meetings, calendar plugins, embedded iframes, portals and any scripts that call the server. Record which account each one uses, how often rooms are created, and which features (moderator rights, lobby, recording) they depend on. Your identity or portal team should own the list. It is done when every entry maps to a planned token source or a named owner who will change it, and nothing on the list is left as unknown.
Pilot token issuing in a staging tenant
Stand up a staging Jitsi deployment with JWT authentication enabled, using the same app ID and secret pattern you plan for production, and a separate anonymous domain for guests. Have your development team add token issuance to the identity or portal layer so a signed token is generated only after the user is authenticated. Test moderator and non-moderator claims, room names, token expiry and rejection of tampered or expired tokens. The pilot is complete when a test set of users can join and each negative case fails as expected.
Build token issuing into the identity or portal layer
Move the token signing logic from ad hoc scripts into the system that already knows who the user is, such as your single sign-on provider or internal portal. Keep the signing secret in your secrets store, restrict who can read it, and set token lifetimes you have reviewed with your security team. Document which claims each user role receives. The output is a reviewed issuing component with logs of token creation, and a runbook for rotating the secret.
Run a parallel period for a defined group
Keep the secure domain available while a defined pilot group, such as one department or one set of integrations, uses JWT links on the main domain. Compare joins, moderator behavior, lobby and recording use, and any support tickets from both paths. Confirm the Jicofo and Prosody configuration handles both authentication modes as your Docker or package install expects. The parallel run is done when the pilot group has used JWT meetings through its normal workload and the team has a list of open defects with owners.
Communicate link and sign-in changes
Write user-facing notices that explain what will change: the new meeting link format, that users sign in through the portal rather than typing a shared username and password, and what happens to existing bookmarks and calendar invitations. Update calendar templates, embedded pages and help articles before the cutover date you agree internally. The step produces a published notice, updated templates, and a short support script that your help desk can use.
Cut over the main domain
Switch the main domain to JWT authentication during a window your operations team has agreed, with the rollback steps written down and a named person able to revert the configuration. Watch join success, token errors and support volume, and confirm that calendar and portal links now produce tokens. Keep the rollback path available until the team has reviewed the first working period. The cutover is complete when production meetings start through issued tokens without unresolved authentication failures.
Decommission secure domain accounts
After the cutover has been stable and no integration still depends on the old path, disable the secure domain accounts and remove the room creation credentials from configuration. Confirm with your access reviewers that no shared accounts remain, and archive the inventory, test results and change records for your audit trail. The step produces a signed-off closure record and a list of any exceptions with owners and review dates, so the old method cannot quietly return.
Questions teams ask before moving from secure domain to JWT
How much does moving from secure domain to JWT cost?
The cost is mostly the time of the people doing the work, and it depends on how many systems mint tokens today. You pay for an identity owner to decide claims and roles, a portal or application developer to issue tokens from your login system, and a Jitsi operator to change the Prosody and Jicofo settings and test. The main one-time costs are that design and testing work. Recurring costs are small by comparison: token signing keys to rotate and the portal code to maintain. Ask any partner for a quote that lists each role, the systems in scope and the test cases, since those items drive the number more than the Jitsi configuration itself.
How long does a secure domain to JWT move take?
The duration depends on how many applications create meetings, how many people hold room links and how much testing your change process requires. A single portal with one login system is a much smaller job than several apps with different identity providers. The usual sequence is design, a staging build with JWT enabled alongside the old domain, application changes, a test round with real moderators, and then a cutover window. Confirm the schedule with whoever runs your change calendar, because freeze periods and approval steps often take longer than the technical work.
What must our internal team provide for this move?
Three roles need to be named before work starts. An identity owner decides which user attributes, group names and moderator rights go into each token and who approves those choices. A portal developer adds server-side code that signs tokens with the shared secret or key and sends users into meetings with the right claims. A Jitsi operator edits the .env file or Prosody and Jicofo configuration, restarts services and watches logs. One person can hold more than one role in a small team, but each role still needs time set aside, and the identity owner is the role most often missing.
Can our own team do this move using the Jitsi handbook?
A capable team can do it using the handbook, provided it already runs a Jitsi deployment and has someone comfortable with Prosody, Jicofo and TLS. The token authentication page covers the settings, and the secure domain page explains what is being retired. Where teams struggle is the application side: validating tokens, handling expiry, and testing moderator and guest behavior across browsers and mobile clients. Ask yourself whether you have engineers who can write and test that code in your own stack. If not, a fixed-scope engagement can cover the design, the build and the test plan in writing before work starts.
What happens to existing room links and recordings?
Existing room links work only while the deployment still accepts the old authentication path, so the cutover plan must say when that path closes. Room names usually stay the same, but a link opened after the change will need a token, so users who open a bookmark may see a prompt or a denied join. Recordings are not tied to the authentication method. They live where your recording setup writes them, so check that storage path, retention and access rules separately. Publish the cutover date, tell users which links change, and keep a short window where both paths run if your users depend on saved links.
Do guests need a separate path after the move?
Yes. Guests should use the anonymous domain described in the handbook, so they can join without a token while moderators keep authenticated access. Plan the guest flow before changing the main domain, because the anonymous domain has its own settings and needs its own DNS and certificate coverage. Decide who may create rooms that guests can enter, whether lobby or room passwords apply, and how moderators admit people. Test guest joins from unmanaged browsers and phones, since those are where most support questions appear after a cutover.
What security risks should we plan for during the move?
The largest risk is a signing secret that is weak, shared too widely or stored in code. Plan key storage and rotation before issuing tokens, and restrict who can read the configuration. A second risk is a token with broad moderator rights issued to every logged-in user. Keep the claims minimal, set short expiry, and test that a token for one room cannot open another. Finally, the old secure domain should be switched off on a known date, not left running indefinitely, because it is the weaker path.
What usually goes wrong during the switch
Most failed moves from secure domain to JWT come from a handful of configuration gaps rather than from the token format itself. The risks below share one cause: the old and new authentication paths were not reviewed together before users were moved, so each card names a check to run before cutover.
Token secret mismatch or short lifetimes
Tokens are checked against a shared secret and an expiry time set in the Docker .env file and the issuing application. If the signing key on the issuer differs from the one Prosody uses, every join fails with an unclear error. Check that the secret and the aud, iss and sub claims match exactly, and test token expiry with a meeting that runs longer than the lifetime you chose. Confirm the values against the token authentication handbook page before you change production.
Main domain left open after cutover
Running the JWT domain alongside the old secure domain leaves the username and password room creation path reachable. Anyone who can reach the main domain can still create rooms without a token, which defeats the reason for the migration. Disable the old authentication setting on the main domain, then try to create a room from a browser with no token to confirm it is refused. Record the test in your change log so the result can be shown during a review.
Secure domain docsGuests blocked by missing anonymous domain
Once JWT is required on the main domain, guests who join without a token are refused unless the anonymous domain is configured. The anonymous domain gives guests a separate path so they can join a room that a token holder opened. Without it, invited external participants see a rejection at the prejoin screen. Test a guest join from an unauthenticated browser on a phone and a laptop before you announce the change.
Moderators losing rights in recurring rooms
Moderator status in a JWT meeting comes from the token's moderator claim, not from the first person who opened the room. Recurring rooms that relied on the old login may open with every participant as a regular user after the switch, so nobody can admit people from the lobby or mute others. Before cutover, list the recurring rooms, decide who should be moderator in each, and confirm that each issued token sets that claim correctly.
Users locked out without a communication plan
Existing users who open old links, bookmarks or calendar invitations may find that the room now asks for a token they do not have. Staff who schedule meetings need to know whether to use the new link format, and help desk staff need a script for the first week. Publish the change date, the new join procedure and a contact point at least once before the switch, and keep the old and new procedures documented until call volume drops.
Certificate and domain issues
The Jitsi handbook says HTTPS with a proper domain certificate is necessary for working audio and video, and warns that self-signed certificates cause problems, especially with mobile clients. A token issuer that calls the Jitsi domain over an untrusted certificate can also fail silently. Confirm that the certificate covers every domain in use, including the anonymous domain, and test joins from iOS and Android apps before the cutover date.
Quick start docsWhat drives the effort and cost of the JWT move
This table lists the factors that change how much work the move from secure domain to JWT takes and what it costs. Read each row as a driver: the middle column says whether it raises or lowers effort, and the last column lists what to ask for in a written quote. The main takeaway is that the number of systems that issue identity and the number of room creators usually matter more than the Jitsi config itself.
| Driver | Effect on effort and cost | What to ask for in a quote |
|---|---|---|
| Systems that issue identity | Raises effort with each system. Every app, portal or script that signs tokens needs a shared secret or key handling, claim mapping and testing. | A list of every token issuer, the signing method each uses, and who owns each one after handover. |
| Existing identity provider | Lowers effort when one provider already signs user identity that can be mapped to JWT claims. Raises it when identity lives in spreadsheets or local accounts. | Confirmation of the provider in use, whether it can issue claims for Jitsi, and any mapping work included in scope. |
| Room creators and integrations | Raises effort when many apps or teams create rooms, since each creation path must issue a valid token with the right moderator claim. | An inventory of room creation paths, the number of integrations to change, and the test cases covered for each. |
| Current Jitsi install method | Debian package installs and Docker installs differ in where settings live, so the auth change touches different files. Mixed or heavily customized configs raise effort. | Which install method is running, the release in use, and which custom Prosody, Jicofo and config.js settings are in scope. |
| Guest volume and anonymous domain | Raises effort when many guests join without tokens and the anonymous guest domain must be tested with the same links people already use. | Expected guest flows, how guests reach rooms, and the cutover tests planned for guest links. |
| Cutover and existing users | Raises effort when users, bookmarks or scheduled links depend on the old secure domain URLs and need a planned window. | A written cutover plan, the rollback method, and who communicates with users and when. |
| Testing depth | Raises effort in proportion to the number of roles, browsers and devices tested, including mobile clients where certificate issues appear. | The test matrix, the environments used (staging or production), and the evidence delivered at the end. |
What the work needs from your team
Moving from the secure domain to JWT starts with four inputs your team must own before any configuration changes. First, an inventory of who creates rooms today and how: the accounts that hold the username and password used for room creation, the rooms and room names people rely on, and any bookmarks, calendar invitations or embedded links that point at the current domain. Second, the identity system that will issue tokens, such as an existing single sign-on provider or an application that can sign a short-lived token for each signed-in user, with the claims (name, email, moderator flag) it will carry. Third, a named owner for the signing keys, who decides where the secret or key pair is stored, how it is rotated and who can revoke it. Fourth, a staging Jitsi that mirrors the production .env and Prosody and Jicofo settings, so the new token flow can be tested before users see it.
The guest policy is the decision that shapes the rest of the work. Confirm whether unauthenticated guests may join at all, and if they may, whether they reach the anonymous domain described in the Jitsi token authentication guide with its own rules for moderation and lobby behavior. Write this down with the people who own meeting policy, because it determines which rooms need tokens and which do not. Check the exact .env authentication settings in your Docker release or package version rather than assuming the names from an older install, since the handbook describes them per release.
Your team can do this internally with the Jitsi handbook if it already runs Jitsi and has people who understand JWT signing, token claims, Prosody virtual hosts and Jicofo configuration. If those skills are thin, the scalable setup guide warns that building infrastructure is not a task for beginning Jitsi administrators and recommends configuration management tools such as Ansible or Puppet. Plan a staging run either way, and treat a partner quote as a comparison: ask for the written scope to cover the inventory, the token issuing service, the staging test, the production cutover and the rollback steps.
How DeployOpen scopes and delivers the JWT migration
The sequence turns a deprecated secure domain into token-gated meetings in your own infrastructure, with a tested cutover and documentation your team can run after handover. Each step closes with a written output so scope, progress and acceptance stay visible.
Inventory current room creation and users
DeployOpen reviews how your Jitsi is used today: which applications, scripts or people create rooms, which accounts exist on the secure domain, which meetings must stay open to guests, and which external links point at your instance. The output is a written inventory that lists each entry point, its owner and whether it needs a token, a guest path or a change in user behavior. Your team confirms the list before any configuration changes are made.
Agree the token and guest design in writing
Together with your identity and security owners, DeployOpen documents the target design: which systems issue JWT tokens, which claims identify users and moderators, how room names are constrained, how token lifetimes are set, and how the separate anonymous guest domain is configured. The design is signed off as part of the fixed scope, and any open decision is recorded with a named owner. Acceptance is a written design document that the scope references.
Configure Prosody, Jicofo and the web app
DeployOpen sets up the token authentication settings on the self-hosted instance in your infrastructure, including the Prosody virtual hosts for the authenticated and anonymous domains, the Jicofo settings that match them, and the web app configuration that points clients at the correct domain. Changes are made in a staging copy first so the existing secure domain keeps serving users during build-out. The output is a reviewed configuration set kept under version control with a record of every changed file.
Build and test the token issuing service
Where your organization issues tokens from an application, identity provider or portal, DeployOpen builds or integrates that issuer, signs tokens with the agreed key handling, and checks that valid tokens open the intended room with the right moderator role. Negative tests cover expired tokens, wrong audience or room claims, missing signatures and attempts to reach authenticated rooms from the guest domain. The output is a test report listing each case, the result and the fix for any failure.
Rehearse the cutover with pilot users
DeployOpen runs the new configuration with a small group of internal test users and a few real meeting flows, including a meeting with a third participant, mobile clients and a link opened from outside the organization. The rehearsal checks that existing bookmarks, calendar links and scripts behave as the inventory predicted, and that moderators keep the controls they need. Findings go into a change list, and the rehearsal ends with a sign-off from your team on the cutover checklist.
Execute the cutover and monitor the first meetings
On the agreed date, DeployOpen switches the instance to token authentication and disables the deprecated secure domain path, following the rollback steps written in the plan. During the first live meetings, the team watches logs and call behavior for token rejections, guests who cannot join and clients that cache old settings. The closing output is a cutover record with timestamps, observed issues, their resolution and the rollback status.
Hand over documentation and runbooks
DeployOpen delivers the design document, configuration reference, token issuer documentation, test cases, cutover record and runbooks for rotating signing keys, adding a new application or user group and handling a failed token flow. Your engineers walk through the runbooks, and the handover is accepted when they can perform a key rotation and a new integration from the documentation alone. Your team keeps the documentation under its own control.
Agree ongoing support through a retainer
Once the migration is accepted, your team may choose a retainer for ongoing support, Jitsi upgrades and continuous security testing of the token flow. A retainer is a separate written agreement with its own scope, so it is priced and timed independently of the migration. Ask for the retainer terms, response expectations and what is excluded before you sign, and confirm them against your own change control process.

