Who can open a Jitsi room when your application issues the token
With JWT token authentication, your application or identity layer signs a token that Jitsi checks before it admits a participant. A self-hosted Jitsi Meet then opens rooms only to people your system has already authenticated, instead of to anyone who knows a room name. The Jitsi handbook recommends this method for new installations and marks the older secure domain method, which relied on username and password room creation, as deprecated. If you are still running a secure domain setup, treat moving to tokens as a planned migration rather than a configuration tweak.
Teams usually need this for internal meetings that should stay inside the company, for customer or patient conversations where the host must know who is joining, and for video embedded in an internal product, where the product already holds the user's session. In each case the application decides who is a host, who is a participant and how long a meeting link is valid. Token authentication sits alongside a separate anonymous domain for guests, so people without accounts can still be invited without weakening the signed-in path. Confirm with your security team which of these groups must be covered before you design the token claims.
Before you commit, confirm three things: that your identity layer can issue a signed token at the moment a user opens a meeting, that your Jitsi domain has a valid public certificate, since the handbook warns that self-signed certificates cause problems, especially on mobile clients, and that someone owns the signing secret and its rotation. Those decisions shape the rest of the setup more than the configuration files do.
How a JWT token gates a Jitsi room
The flow starts when a signed-in user asks the application for a meeting, and the application signs a JWT with a secret that Jitsi components never receive from the browser. The browser presents that token when joining, and Prosody and Jicofo check it before the Jitsi Videobridge media session begins. Check that the signing secret stays on the application side and that the token's room and expiry claims match the meeting the user is entering.
Token flow from sign-in through Prosody and Jicofo to the Videobridge media session.
Which authentication method fits your Jitsi deployment
This table compares the authentication options the Jitsi Docker guide lists, plus the deprecated secure domain method, for a self-hosted Jitsi Meet. Read each row for who manages identities, what your application team must build, and where the option fits best. For most applications that already have a login, JWT token authentication is the option the Jitsi handbook recommends.
| Method | Who manages identities | What it asks of the application team | Best fit |
|---|---|---|---|
| Internal XMPP accounts | Administrators, through accounts created in Prosody | Little beyond creating and removing users on the server; no integration with your application | Small teams with a few hosts who need a simple login and no existing directory |
| JWT tokens | Your application or identity layer, which signs the token | Issue a signed token per user with the room and claims, and manage the shared secret and token lifetime | Applications with their own sign-in that want only signed-in users to open rooms |
| LDAP | Your directory service, such as Active Directory or OpenLDAP | Connect Jitsi to the directory and confirm which groups and attributes control access | Organizations whose staff already sign in through a central directory |
| Matrix user verification | Your Matrix homeserver | Run or connect to a Matrix homeserver and confirm that users verify against it | Teams that already communicate on Matrix and want one account across tools |
| Hybrid Matrix plus JWT | Matrix homeserver for user checks, with your application issuing tokens | Maintain both a Matrix login path and token issuance, and test how the two interact | Matrix users who also need tokens for embedded or application-launched meetings |
| Secure domain (username and password room creation) | Administrators, through accounts on the secure domain | Deprecated for new installations; the handbook recommends JWT instead | Not recommended for new installations; existing deployments should plan a move to JWT |
What changes in each component when you enable JWT
Enabling JWT touches four places that must agree on the same settings: the system that signs tokens, the Prosody XMPP server that validates them, the web app configuration, and the deployment settings that switch authentication on. A mismatch in any one of them usually shows up as a blocked room or a guest who cannot get in, so check each component before you test end to end.
Token issuing application
Your application or identity layer creates a signed token for each signed-in user and attaches it to the meeting link. It holds the shared signing secret or key pair and sets the expiry, the room the token allows and the user's name and email. Owned usually by the application or platform team. Verify that a token is issued only after your own sign-in succeeds, that it expires, and that a token for one room does not open another.
Token authentication guideProsody token validation
Prosody, the XMPP server, checks the token signature, audience, issuer and expiry before it accepts a participant into a room. The token plugin and the app ID and secret must match what the issuer uses, so a single typo rejects every user. Usually owned by whoever runs the Jitsi servers. Verify that a valid token joins, that an unsigned or expired one is refused, and that the Prosody logs show the reason for each rejection.
Web app configuration in config.js
The web app settings control how the browser asks for authentication and which domain guests land on. Typical changes cover the authentication domain, whether anonymous users are allowed, and where the app should send a user who lacks a token. Usually owned by the team that maintains the front end or the deployment repository. Verify that a signed-in user reaches the room without a login prompt, and that a user with no token sees the behavior you designed.
Docker or Debian authentication switch
On Docker, the .env file selects the authentication method and carries the JWT settings that Prosody reads. On Debian or Ubuntu packages, the same choice lives in the Prosody and web configuration files on the host. Usually owned by the platform or operations team. Verify the settings after every restart or upgrade, since a container recreated from an old .env can silently return the deployment to open access.
Configuring JWT authentication for Jitsi Meet step by step
This sequence takes a self-hosted Jitsi Meet from open access to token-gated rooms, so only users your application or identity layer has signed in can open a meeting. Each step ends with a check you can run before moving on.
Confirm the domain, certificate and host OS
Before touching authentication, confirm that Jitsi Meet runs on a domain with a proper certificate, served over HTTPS. The Jitsi handbook says HTTPS with a valid domain certificate is necessary for working audio and video, and warns that self-signed certificates cause problems, especially on mobile clients. Confirm the host OS is on the supported list in the Debian and Ubuntu quick start (Debian 12 or newer, or Ubuntu 24.04 or newer) and that ports 80/TCP, 443/TCP and 10000/UDP are open. Check: the site loads over HTTPS in a browser with no certificate warning, and an unauthenticated room still opens before you change anything.
Choose the token issuer and signing secret
Decide which system will issue tokens. This is usually your application backend or an identity layer that already knows who is signed in. Agree on the issuer and audience values that Jitsi will check, the algorithm, and where the signing secret is stored. Keep the secret in your secrets manager or server environment, never in front-end code, and plan how it will be rotated. Record the values in one place so the Prosody and web configuration in later steps use exactly the same strings. Check: you have a written list of issuer, audience, app ID, secret location and token lifetime that the team has reviewed.
Install the tokens package on the issuing side
On the Prosody server, install the Jitsi token authentication module that the Jitsi token authentication guide describes, so Prosody can validate signed tokens. Use the package name and install steps from the handbook for your Jitsi release, since packaging details can differ between Debian packages and Docker images. Confirm the module loads without errors in the Prosody log after a restart. Check: Prosody starts cleanly and the log shows the token module loaded, with no authentication errors for existing services.
Configure Prosody for token authentication
Edit the Prosody virtual host for your Jitsi domain so that it uses the token authentication provider instead of anonymous or internal login for the main domain. Set the app ID, app secret and allowed issuers to the values you recorded in step two, and keep the anonymous guest domain separate if you plan to allow guests. Restart Prosody and Jicofo. Check: Prosody reports the authentication provider for the main domain as token-based, and the configuration file contains no placeholder secrets.
Set the matching web configuration
Update the web configuration so the front end requests a token and joins the authenticated domain. In the Jitsi config files, set the authentication domain and the app ID the front end presents, and confirm the main XMPP domain matches the Prosody virtual host from the previous step. For Docker installs, the authentication option is set in the .env file, using the JWT setting described in the Jitsi Docker guide, alongside the app ID and secret variables. Restart the web container or reload nginx so the new settings are active. Check: opening the bare room URL on the main domain redirects to a token prompt or is refused, while the static page itself still loads.
Test with a rejected and an accepted token
Run two tests from a script or a REST client, not from a browser session you already trust. First, request a room with no token, or with a token signed by a wrong secret, and confirm Jitsi refuses entry. Second, issue a correctly signed token that names the intended room, includes a valid expiry and carries the expected issuer and audience, then open that room and confirm the participant joins. Also test an expired token and a token for a different room. Check: unsigned and wrongly signed tokens are rejected, expired and wrong-room tokens fail, and only the correctly scoped token gets in.
Check logs and document the token contract
Review the Prosody and web logs during the test run to confirm rejected attempts appear with clear reasons and that secrets are not printed. Then write down the token contract for the team that issues tokens: required claims, room naming rules, expiry, and how guests are handled through the anonymous domain. Confirm who owns secret rotation and what happens when a secret changes. Check: a second engineer can issue a valid test token from the documentation alone, and the logs show the expected accept and reject entries.
Testing tokens and handling guests by environment
A lab or staging instance exists so your team can prove the token flow works before any user depends on it. Use a separate Jitsi Meet deployment, with its own domain, its own JWT_APP_ID and its own signing secret, so test material never overlaps with production. Generate test tokens with a short script or a throwaway helper that runs on a developer workstation, and keep that script out of the production application repository.
- Generate deliberately varied tokens: Create one token for a plain participant, one for a moderator, and one with an expiry already in the past, so each branch of the check is exercised.
- Verify the room name: Confirm the room claim matches the room the browser opens, including case, and that a token for one room does not open another.
- Verify the moderator flag: Check that only the token marked as moderator receives moderator controls in the meeting.
- Verify the domain and audience: Confirm the issuer, audience and app ID in the token match the values in your Prosody and
config.jssettings exactly. - Keep the lab key separate: Never copy the lab secret into production configuration, and rotate it if it was shared with a vendor or tester.
Before leaving this tab, confirm that an expired or wrongly signed token is refused in the browser, not just in the logs.
In production, tokens should be issued only by your application or identity layer after the user has signed in. The signing secret lives on the server that issues tokens, and the Jitsi servers only hold the matching verification settings in Prosody. Expiry should be short enough that a shared link becomes useless, and the moderator flag should come from your own role model rather than from a user-editable field.
- Issue tokens after sign-in: Create the token in a server-side route that checks the user's session, not in front-end JavaScript where the secret could be exposed.
- Verify expiry and room scope: Confirm that each token is tied to one room and one expiry time, and that expired tokens are rejected when tested against the production domain.
- Map moderator rights from your roles: Set the moderator flag only for users your identity system already marks as hosts, and document who can grant that role.
- Keep test tokens out: Production must not accept tokens from the lab app ID, and the lab signing key must never be deployed to production hosts or CI variables.
- Restrict secret access: Store the signing secret in your secrets manager, limit who can read it, and record each rotation so you know which tokens remain valid.
Before go-live, ask the team to confirm which system holds the signing key, who can rotate it, and what happens to open meetings when it changes.
Guests are handled on a separate path. Jitsi's guidance is to run an anonymous domain alongside the authenticated one, so external participants can join without a token while the main domain still requires one. The anonymous domain is configured in the server setup and in config.js, and it should never be given the authenticated domain's signing configuration. This tab covers only how the two paths are kept apart; guest behavior, waiting for a host and lobby options are covered on the sibling pages on guests and lobbies.
- Separate the domains: Confirm that the authenticated domain rejects requests without a valid token while the anonymous domain accepts them, using two test sessions.
- Do not sign guest tokens with the production secret: If a guest flow needs a token at all, issue it from a separate process with its own limits.
- Check what guests can reach: Verify that a guest cannot open a room on the authenticated domain by changing the URL.
- Confirm the room naming plan: Make sure guest links point to rooms that authenticated users can also reach, or that the separation is intentional.
- Review the guest policy with the owner: Ask who approves guest access and whether the anonymous domain is allowed for sensitive meetings.
Before finishing, check that a guest session never appears with the moderator flag and that the two domains are documented as separate in your runbook.
Why the secure domain is retired for new installations
The Jitsi handbook marks the older secure domain method as deprecated for new installations and recommends JWT token authentication instead. The secure domain is a setup where Jitsi Meet is configured so that users create rooms by signing in with a username and password on the server, rather than having each application vouch for the people who join. That model ties room access to accounts held on the Jitsi side, so every room creator needs a credential the server knows about. For a new deployment, the handbook's recommendation is to issue signed tokens from your own application or identity layer and to keep a separate anonymous domain for guests.
For a team planning this work, the practical question is what the change means for an instance that already runs the secure domain. Moving to tokens changes where identity is checked: the application decides who may enter a room and signs a token that the Jitsi components verify, so user management moves toward the system that already holds your users. Existing rooms, bookmarks, guest links and any scripts that rely on the username and password flow will need to be found and reworked. Confirm which of your users and integrations depend on the old flow before you change anything, and check the current handbook text for any statement about support timing, since this section does not give one.
The steps for migrating an existing instance from the secure domain to JWT are covered in the migration topic of this content group, so this section does not repeat them. What matters here is the decision: if you are starting fresh, build on JWT from the first day, and if you are converting a running server, plan the cutover as a change with a test environment, a list of affected users and a rollback path. The official JWT token authentication guide is the natural next read for the settings you will need once that decision is made.
Security risks in token issuance and how to contain them
Token authentication decides who gets into a room, so the weak points sit in how tokens are signed, scoped, delivered and separated from guest access. The four cards below cover the risks we see most often and the control that contains each one. Token authentication controls admission, not media encryption, which Jitsi handles separately.
Leaked signing secret
Anyone holding the shared secret can mint a valid token for any room and any name. Store the secret in your secrets manager or a restricted file on the Prosody host, never in front-end code, a repository or a shared chat. Rotate it on a schedule and after any staff change, and confirm where your team keeps the value and who can read it. Check that the same secret is configured in Prosody and in your token issuer.
Token authentication docsOverly broad room and moderator claims
A token with a wildcard room claim or a moderator flag for every user lets any signed-in person control meetings they were never invited to. Issue tokens scoped to one room name, set moderator status only for the roles that need it, and keep token lifetimes short so a copied token expires quickly. Confirm the expiry and claim format your Jitsi version accepts in your own test environment before relying on it.
Missing HTTPS or self-signed certificates
Browsers and mobile clients that reject a self-signed certificate can fail to load the app or join calls, which often looks like an authentication bug. Use a certificate issued for your public domain, served by the reverse proxy in front of the web server, and verify it from a phone on a mobile network. The Jitsi handbook states that HTTPS with a proper domain certificate is necessary for working audio and video.
Unclear line between guests and members
If the signed-in and guest experiences share one domain, a guest path can quietly bypass the token check or be mistaken for an authenticated session. Use the separate anonymous domain for guests, keep the authenticated domain reachable only through your issuer, and test both paths with and without a token. Ask your team to document which rooms, if any, guests may enter and who approves that exception.
Questions teams ask before setting up JWT authentication for Jitsi
How much effort does JWT setup for Jitsi Meet take?
The effort depends mostly on how many applications will issue tokens, how your identity system exposes user details, and how much of the Jitsi configuration you already manage. A single internal portal that signs users in with an existing identity provider is a small change. Several applications, each with different roles and meeting rules, add work in token design, testing and change control. The configuration itself touches the Prosody XMPP server and the config.js file, so someone must be comfortable editing both and restarting services safely. Ask any provider for a written list of the applications, identity sources and environments in scope before agreeing on effort.
Can our internal team set up JWT authentication without outside help?
Yes, if you already run Jitsi Meet and have people who can administer Linux servers, a web server and XMPP components. The official handbook documents token authentication and describes the Prosody and config.js changes, so the steps are known. The risk is in the surrounding work: signing keys must be stored securely, tokens must carry the right claims and expiry, and the setup must be tested from the browser with real user journeys. Teams without an application developer who can issue signed tokens, or without someone who owns the identity layer, usually need outside help for those parts.
What does the JWT work need from our people?
Three roles usually carry the work. The identity owner decides which users may enter which rooms and maps group or role data into token claims. The application developer adds code that signs tokens with the shared secret or key and passes the room name and user details. The operations engineer manages the Jitsi servers, applies the Prosody and config.js changes, handles certificates and tests failure cases such as expired tokens. In small teams one person may hold two roles, but each role should be named before the work starts so decisions about room access are not made by default.
How long does it take to reach a tested JWT setup?
Duration is set by the number of token-issuing applications, how quickly access rules are agreed, and whether the HTTPS certificate is already valid for the Jitsi domain. The handbook is clear that HTTPS with a proper domain certificate is necessary for working audio and video, and self-signed certificates cause problems, especially on mobile clients, so certificate status can block testing on its own. Testing should cover valid tokens, expired tokens, wrong room names, guest access and each browser and mobile client your users run. Ask for a timeline tied to these milestones rather than a single number.
Will guests still be able to join a JWT-protected Jitsi meeting?
Guests can still join, but they need a deliberate route. The Jitsi handbook recommends JWT token authentication and a separate anonymous domain for guests, so people without tokens enter through a different path from authenticated users. Plan which meetings allow guests, whether a host must admit them, and what features guests lose, such as moderator rights or recording. Decide this before rollout, because a guest path that is too open can undo the purpose of authentication, and one that is too closed can block external partners and patients or students who never receive an account.
What would an outside partner deliver for JWT authentication?
Under a fixed-scope engagement, DeployOpen agrees the scope, deliverables and timeline in writing before work starts. For this topic that can include the token design and claim mapping, the Prosody and config.js changes on your Jitsi deployment, the token-issuing code or review of your existing code, guest path configuration, and a test pass covering the user journeys you define. Ask for the written list of deliverables, the test cases, the handover documentation and what remains with your team after completion. Ongoing support, upgrades and continuous testing are available as retainers, and DeployOpen does not publish a price list, so the quote follows from the written scope.
Limits to confirm before you rely on token authentication
Token authentication only works when four things line up: the Jitsi build you run, the operating system and Java runtime under it, the tokens your identity layer can produce, and the way your install method applies config changes. Confirm each one on a test instance before any user depends on the setup, because a mismatch usually shows up as a rejected join rather than a clear error.
Token claims for your build
Confirm which token claims and features your Jitsi version reads before you design the payload. The current stable build supplied for this page is stable/jitsi-meet_11248, published September 14, 2026. Claim handling can change between releases, so check the handbook token authentication page and the release notes against the build you actually install, then test a token with each claim you plan to use, including moderator and expiry handling.
Token authentication docsOperating system and Java versions
The Debian and Ubuntu quick start supports Debian 12 (Bookworm) or newer and Ubuntu 24.04 or newer, and it requires OpenJDK 17. If your hosts run older releases, plan an upgrade or a different base image before the token work starts. Confirm the Java package your distribution offers and check that it matches the version the quick start names.
Debian and Ubuntu quick startIdentity layer token format
Your identity provider or application must sign tokens in the shape Jitsi expects: a signed token with the audience, issuer, subject and room claims that the Prosody configuration checks. Many login systems issue their own session tokens, which Jitsi will not read as Jitsi tokens. Confirm with a sample token whether you can add a Jitsi-specific token step, where the signing secret lives, and who rotates it.
Config change handling by install method
Debian packages keep settings in files such as config.js and Prosody configuration on the host, while the Docker setup reads most settings from the .env file and container configuration. Confirm where each setting lives for your method, whether a container update overwrites local edits, and how a restart applies changes. Record the exact files and variables you change so a rebuild or upgrade does not silently remove token settings.
Proof on a test instance
Before go-live, run a test instance that mirrors production: the same build, operating system, Java runtime and install method. Join with a valid token, an expired token, a token for the wrong room and a token with no claims, and record how each one behaves. Results on a public or shared instance do not confirm your own configuration, so keep the test instance separate from the environment your users will join.
How DeployOpen scopes and delivers JWT authentication for Jitsi Meet
DeployOpen plans JWT token authentication for your self-hosted Jitsi Meet as a written, fixed-scope engagement inside your own infrastructure. The work covers token issuance from your application or identity layer, the Prosody and config.js changes, and tests that confirm only signed-in users can open rooms before the deployment goes to users.
How we scope
- Confirm which application or identity layer will issue tokens and which users may open which rooms.
- Agree in writing the deployment method, domains, tenant and room naming, and the guest approach for the anonymous domain.
- Record the token claims, lifetimes and secret handling that the written scope will cover before any build starts.
How we build
- Configure Prosody and the web app for token authentication on your Jitsi Meet deployment, using the settings in the handbook.
- Build the token issuing component in your application or identity layer, signing tokens with a secret kept out of client code.
- Test valid, expired, wrong-room and unsigned tokens to confirm rejected requests fail as designed on the target domain.
How we hand over
- Deliver the configuration files, token issuing code and a record of the signing secret's storage and rotation procedure.
- Provide a test log showing which token cases were run, the results, and the fixes applied during the retest.
- Document how to issue a test token, add a new application, and roll back to the previous authentication setup.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Support can cover Jitsi release upgrades, so token settings are checked again when the stable build changes.
- Ask any provider which written checks they will rerun after a configuration change or a rotated signing secret.

