Previewing unpublished Decidim spaces with share tokens

Share tokens let reviewers see a Decidim process or component before launch through expiring links that you can manage and revoke. This page covers how they work, how they extend to components, and what to confirm before relying on them.

On this page

Previewing unpublished Decidim spaces with share tokens: when reviewers need access before launch

When a team has built a participatory process or assembly in Decidim, legal, communications or a steering group often needs to read it before anyone outside the organization can see it. Share tokens give those reviewers time-limited access to unpublished content, so they can check text, phases, components and settings without holding a participant or admin account. The reviewer opens a link, sees the unpublished space, and loses access when the token expires or is revoked.

Teams usually choose a share token over inviting reviewers as accounts when the reviewers are few, temporary and outside the day-to-day team. Creating accounts means someone must manage passwords or invitations, decide which roles to grant, and remember to remove access afterward. A token is narrower: it covers one review window and can be withdrawn in one step. Accounts still make sense for people who will edit content, moderate, or act as ongoing administrators. Before relying on tokens for a sensitive review, confirm the expiry options and revocation controls in your own admin panel, because the exact behavior depends on the Decidim version and configuration your organization runs. The Decidim GitHub repository is the place to check which release you are running.

Before sending any link, agree with the review owner what the reviewers may see, how long they need, and who is allowed to create and revoke tokens. Test the flow on a staging copy, open the link in a private browser window, and confirm that the unpublished space is visible while public pages stay hidden. Record the expiry date and the person responsible for revoking the token after the review ends, so access does not outlive the decision.

Token configuration options and when each fits

This table compares the choices an administrator makes when issuing share tokens for an unpublished Decidim space: scope, expiry, how many links stay active and who may manage them. Read each row against the reviewer's audience and deadline. The main takeaway is that narrow scope, short expiry and few active links keep exposure small, and each setting should be confirmed in the admin interface before a link is sent.

OptionChoose it whenTrade-offConfirm in the admin interface
Space-level tokenA reviewer needs the whole process or assembly, with all its components, before launchExposes more content, so the content scope must be agreed before the link is issuedWhich components the link reveals and whether unpublished components appear
Component-level tokenOne component, such as a proposals or budget component, needs outside reviewNarrower exposure, but the reviewer may ask about pages the link does not openWhether a token can be scoped to one component and where it is listed
Short expiry windowAn external legal or vendor team has a fixed, close review deadlineThe link lapses quickly, so a late reviewer needs a new oneWhether expiry is set as a date or a duration, and the default value
Longer expiry windowAn internal steering group reviews over several weeksThe link stays valid longer, so exposure lasts longer if it is forwardedThe maximum allowed expiry and whether a token can be extended or must be recreated
Few active tokens per spaceOne reviewer group or one audience needs access at a timeSimpler to audit and revoke, but shared links are harder to tell apartWhether there is a limit on active tokens per space and how many are listed at once
One token per reviewerIndividual reviewers need separate tracking or revocationMore links to manage, but a leaked link can be revoked on its ownWhether tokens can be labeled by recipient or purpose
Admin-only creationRelease of unpublished content must stay under central controlSlower for reviewers who need a link at short noticeWhich roles can create, view and revoke tokens in the permission settings
Delegated creationProject managers prepare reviews without full administrator accessA wider group can expose content, so revocation rights need tighter controlWhether non-admin roles can create tokens and who can see the full token list

How a space token reaches its components

The flow starts with an administrator creating a share token for one space, such as a process, in the admin area. The reviewer then opens the link in a browser outside the platform, and the Decidim application server checks the token on each request. If the token is valid and unexpired, the preview covers the space and the components inside it. Access ends at the expiry date or when the administrator revokes the token. Before sharing, confirm that every component the reviewer needs sits inside the space and that the expiry date matches the review window.

Token access flows from the space to its components and ends at expiry or revocation.

Setting up and testing share tokens before a review

This sequence confirms that a share token behaves as intended on a test space before a real review starts. It checks the platform version and admin access, then tests the reviewer's view, the handling of unpublished components, and the expiry and revocation settings. The output is a written record that the review link shows what it should and stops working when revoked.

  1. Confirm the Decidim version and admin roles

    An administrator checks which minor version the test organization runs. Decidim supports only the last two minor versions with security updates, currently 0.32.x and 0.31.x, so an instance on an older branch should be upgraded or excluded from testing. Confirm that the people who create tokens hold the admin roles they need, and that reviewers hold no more access than the review requires. Done when the version and role list are written into the test record.

  2. Create a test unpublished process

    In a test or staging organization, create a process and leave it unpublished. Add at least one component with sample content and name the process clearly as a test so it cannot be mistaken for live content. Done when the process appears in the admin panel as unpublished and nothing about it appears on the public site, in listings or in search.

  3. Generate a share token for the process

    Use the share token option on the unpublished process in the admin panel and create one token for the review. Record who created it, the date, the intended reviewer and the purpose. Send the link only to the named reviewer, using a channel your security team approves. Done when the admin record shows one active token attached to the test process.

  4. Open the link in a private browser session

    Open the link in a private browser window that is not signed in as an admin. Confirm that the process page loads and note what a reviewer sees, including the title, description and phase information. Check that the process is still absent from public listings and search results. Also confirm that a visitor without the link cannot reach the process by typing its address. Done when you have a short note of what is visible and what is hidden.

  5. Check unpublished components behave as expected

    From the same private session, open each component in the test process. Confirm that the token exposes the components you intended to share and that any component still unpublished stays hidden. Test whether anonymous viewers can take actions such as commenting or submitting content, and confirm that those actions are blocked unless the review plan calls for them. Done when each component's visibility matches the review plan in writing.

  6. Record expiry and revocation settings

    Note the expiry setting configured for the token and confirm in the documentation for your version how expiry is applied and what it covers. Record the settings with the version number. Then revoke the token in the admin panel and reopen the link in a fresh private session. Confirm that the link now fails. Done when the failed access is recorded with the date, the version and the name of the administrator who revoked the token.

How space tokens extend to components inside a process

The key question for this section is whether a share token created at the space level, such as a process, also opens the components inside it, including meetings, proposals and surveys. Treat that as an open question until you have tested it. The supplied material does not confirm how Decidim applies space-level preview rights to child components, so do not assume the reviewer sees everything in the process just because the token was created on the process itself. Confirm the inheritance behavior on a test instance running the same Decidim version as production, using a token created on a draft process that has at least one component of each type your reviewers will need.

Check each component type separately, because behavior can differ between them. For a meetings component, confirm whether an unpublished meeting and its registration page are visible through the token, and whether the reviewer can see the meeting list without being able to register. For a proposals component, confirm whether proposal listings, individual proposal pages and any draft or withdrawn proposals are shown, and whether comments and votes are hidden or readable. For a survey component, confirm that the questionnaire itself is visible but that no submission is possible or recorded during the preview. Record the result for each component in a short table, so the reviewer's view is documented and can be repeated after changes.

Plan for the case where a component is not covered. If a token opens the process but not a specific component, decide whether that component should be published first or whether the reviewer needs a separate token for it, and document that decision with the people who approve the launch. Also test what happens after you revoke the token and after a component is published, since a visible component may remain reachable through an old link in some setups. Ask your implementation partner or the Decidim community to confirm any inheritance rule you find in the documentation for your exact version before you rely on it in a sign-off.

Security risks of leaked or long-lived preview links

A preview link gives anyone who holds it a view of content that has not been published, so its risk depends on who receives it, how long it stays valid and whether anyone can see it. The cards below cover the failure modes to design against before reviewers receive their first link, and the controls that limit each one.

Forwarded links reach outsiders

A share link works for whoever opens it, so a reviewer who forwards it to a colleague, a contractor or a journalist hands over the preview without any login check on the recipient. Before issuing tokens, agree who may receive them, label each token with its intended reviewer where your process allows, and ask the reviewer to confirm they will not forward it. Confirm whether your Decidim version records which token opened a preview so you can trace a leak.

Tokens that outlive the review

A token issued for a two-week review can remain valid long after the review ends, and it keeps working even after the reviewers have moved on. Set an expiry date that matches the review window, and make revocation part of the launch checklist. Check in the admin interface that expired and revoked tokens stop opening the preview, using a test browser that has never signed in.

Previews reaching search and caches

Unpublished content can leak through public search indexing, shared caches or CDN copies if a preview URL is reachable without a session. Confirm that preview pages send no-index instructions, that your reverse proxy and CDN do not cache responses that contain share tokens, and that the preview is not linked from public navigation. Test by searching for the title of the unpublished process from outside your network.

Admins without visibility into active tokens

If nobody can list which tokens are active, which space or component each one opens and when it was created, revoking access after a leak becomes guesswork. Ask for a periodic review of active tokens, a named owner for each review, and logs of token creation and use kept in your central logging system. Keep the audit trail for the same period as your other administrative records.

Vulnerabilities in the platform itself

A token only protects content while the application enforcing it is patched, so a flaw in the authorization logic would expose previews regardless of how carefully tokens were managed. Track the supported branches listed in Decidim's security policy, and apply security updates within the grace periods the project gives implementers. Report suspected flaws through the route in the SECURITY.md file, either to security@decidim.org or through GitHub Security Advisories, rather than posting details publicly.

Supported branch
0.31.x
Decidim security policy

Questions teams ask before using share tokens

Can our own team run share token reviews without outside help?

Yes, if your administrators already run Decidim and can follow the admin panel steps for creating, sharing and revoking tokens. The work is mostly configuration and communication: deciding who reviews what, sending links through a channel you control, and removing access when the review ends. Teams that have no Decidim administrator, or that must show a reviewer audit trail to an internal risk function, often ask for help setting the process and documenting it. Confirm the exact token options in your Decidim version before writing an internal procedure, because the screens and permissions can change between releases.

What setup and testing effort do share tokens need before a review?

The effort depends mostly on how many spaces and components you need to preview, how many reviewer groups there are, and whether the unpublished content includes personal data. Setup is small for one process with a single reviewer group. It grows when several components, each with its own content and permissions, must be checked, and when you need to prove that a link opens only the intended page. Ask for a written list of spaces, components and reviewer groups, a test plan that covers logged-out access, and a check that search engines and other visitors cannot reach the preview.

How long should a token review window stay open?

Set the window to match the review cycle, and no longer. A shorter window reduces the time an unpublished page can be read through a forwarded link. Start from the date the review begins, the date reviewers must finish comments, and the planned launch date, then choose the expiry that covers those dates with some margin. Avoid tokens that never expire. If the platform version you run does not offer the expiry or revocation option you need, plan a manual revocation step and record who owns it. Confirm these settings in your own environment before you commit to a policy.

Do share tokens cover every component inside a space?

Share tokens are tied to a space, and the space token extends to the components inside it, so reviewers can see the parts of a process or assembly that are not yet public. Components commonly reviewed before launch include meetings, surveys, proposals and participatory budgets. Check each one, because some components hold participant data, draft proposals or survey responses that should not be visible to reviewers at all. Confirm which components are included in your Decidim version, whether any can be excluded, and how a component that is later added to an existing space behaves.

What happens to existing share links after a Decidim upgrade?

Existing links should be treated as something to verify after every upgrade, not something to assume will keep working. Decidim's update guide asks teams to move one minor version at a time, follow each release's upgrade instructions because some change database structures, and back up the database first. Run the upgrade in staging, open a sample of active tokens, and confirm they resolve to the intended space or component. Record the result for each step. Any token that fails should be reissued and its reviewers told, and the old links should be confirmed as closed.

What does outside help with share token setup cost?

DeployOpen does not publish a price list. Most engagements are fixed-scope, and the quote follows from a written scope that lists the spaces and components to preview, the reviewer groups, the testing you want, and any documentation or training. Cost rises with the number of spaces, the number of components with sensitive content, the testing depth, and the need to integrate with an existing identity or access process. Ask for a quote that separates one-time setup and testing from any recurring support, and ask what is included in each. Ongoing support, upgrades and continuous testing are available as retainers.

What to confirm in your Decidim version before relying on tokens

Share tokens depend on details that change between Decidim releases, so the reader should verify them in the exact version they run. The checks below cover the token options, expiry, component inheritance, logging, private spaces and upgrade behavior, and each one should be tested on a staging copy before reviewers receive links.

Confirm the token options in your version

Open the share token settings for a process in your installed release and list every option the form offers, such as scope, expiry and access level. Write down what the form actually does, because the options on the release notes or in older screenshots may differ. Only the 0.31.x and 0.32.x branches receive security updates, so a version outside those lines should be upgraded before you depend on this feature.

Decidim releases

Test whether expiry is configurable

Create a token, set a short expiry on a test space, and confirm that the link stops working at the stated time without manual action. If the form offers no expiry field, plan a manual revocation step and a reminder process for reviewers. Record the time zone used for the expiry so that a deadline set in one locale does not close early for a reviewer elsewhere.

Check inheritance for each component

For every component type you plan to preview, such as proposals, meetings or surveys, open a token link and confirm whether the component is visible, whether its unpublished state is respected, and whether child pages load. Do not assume that a token for the space covers each component. Keep the test results with the release version so the list can be repeated after an upgrade.

Verify whether token use is logged

Open a token link, then check the admin logs and any audit or access records your installation keeps. Confirm what is recorded, such as the token used, the time, the IP address and the resource viewed. If the platform does not record token access in a form your security team can query, document that gap and decide whether the preview is acceptable for the sensitivity of the content.

Test interaction with private spaces

Preview a private process or assembly with a token and with a user who is not a member. Confirm that the token does not grant private participants access they should not have, and that anonymous viewers cannot post, vote or comment through the preview. Compare the results with the permission settings for the space, since a token should show content without changing who can act on it.

Retest tokens after every upgrade

Before upgrading between minor versions, record the token behavior from your current release. After the upgrade, repeat the checks on a staging copy with the same data, because release notes and upgrade instructions may change database structures that affect tokens. Follow each step of the update guide, back up the database first, and keep the test results for your change record.

Upgrade step size
1 minor version
Updating Decidim

Keeping token access controlled across upgrades and hosting changes

Retest share token behavior after every Decidim upgrade, because a minor version change can alter the database structures that token access depends on. Decidim's update guide asks teams to move one minor version at a time, for example 0.29 to 0.30 before 0.31, to follow each release's upgrade instructions and to back up the database first. Treat each step as a release with its own staging run. On staging, confirm that an active link still opens the intended unpublished process or component, that an expired or revoked link is refused, and that a token issued for a space does not grant access to a component you meant to keep private. Record the results against the version you tested, not against the version you planned to run.

Patching decisions should start from the platform's published policy rather than from habit. Decidim supports only the last two minor versions with security updates until version 1.0, which currently means the 0.32.x and 0.31.x branches, and its SECURITY.md describes the grace periods implementers receive before vulnerability details are disclosed. Check the current branch list and grace periods in that file before you schedule a patch window, and confirm with your own security team how quickly a fix must reach the environment where previews are shared. A preview link that sits on an unsupported branch is a standing exposure, even if nobody is using it.

Add token holders to the release checklist as a named item. Before each upgrade or hosting change, export the list of active share tokens from the admin panel, record which space or component each one unlocks, who requested it and the reviewer organization it was sent to, and set a revocation date where the review has already ended. Assign one owner to sign off the token inventory after the upgrade, and ask that person to confirm that tokens were not silently extended, duplicated or dropped during the move. Hosting changes such as a new server, container image or database restore call for the same inventory, because the people holding links are the same before and after the move.

How DeployOpen scopes and tests Decidim preview access

DeployOpen treats preview access as a security control, not a convenience feature. We scope which spaces and components reviewers may see, build token handling into your Decidim instance inside your infrastructure, and test that expired or revoked links stop working. Engagements are fixed-scope, with the boundaries agreed in writing before work starts.

How we scope

  • Confirm which processes, assemblies or components reviewers need to see before launch, and which must stay hidden.
  • Record who issues tokens, who reviews them, and how long previews should remain valid in the written scope.
  • Agree whether tokens extend only to the space or to individual components within it, and document that decision.

How we build

  • Configure space-level share tokens in your Decidim instance, following the platform's current behavior for your release.
  • Set up the admin workflow for creating, listing and revoking tokens, and confirm component access matches the space rules.
  • Test expiry, revocation and access from logged-out and logged-in accounts against the scope before any reviewer receives a link.

How we hand over

  • Deliver a written configuration record covering token settings, admin roles and the component access model.
  • Provide a test script and results showing expired and revoked tokens are refused, with any gaps listed for your decision.
  • Walk your administrators through issuing, reviewing and revoking tokens so the process runs without DeployOpen.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, including retesting token behavior after Decidim version updates.
  • Review token behavior when your Decidim version changes, since update notes and release behavior may affect access rules.
  • Confirm with DeployOpen during scoping which support terms apply after handover, and what is covered by a retainer.

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.