Portal Architecture
A portal is the attendee-facing presentation of a project. It combines a theme, domain attachments, authentication methods, links to installed apps/forms and attached widgets. A project can have multiple portals with different domains, route paths and audiences.
Data and presentation objects
The installation owns settings, strings, assets and resource bindings. The link owns the attendee URL, title/order and link access overrides. Reusing an installation does not give every portal link the same audience. A default portal exists only when created or supplied by a plan.
Domain and portal resolution
The incoming hostname resolves a ProjectPortalDomain attachment, then its project/portal configuration. System/default, wildcard and single-domain paths have different inputs. Existing custom domains require verified DNS and active SSL; a newly entered custom hostname creates a pending attachment and follows the provisioning flow. Use the environment's displayed DNS requirements, not a universal CNAME example.
The reviewed ordinary host lookup does not filter attachment is_active/is_confirmed, and matched-host page middleware does not apply redirect_to. Stored flags alone do not establish denial or redirect. An unmatched wildcard host has a separate reservation/root-redirect fallback, with 404 when no redirect applies.
The portal default, default domain and entry page are distinct selections. The existing/system attachment flow chooses a default if missing; custom creation and detach do not guarantee a replacement default. See Portal Configuration.
Request and rendering flow
- Portal middleware rejects the reserved dashboard/API/auth hosts for attendee routes, resolves the host and assembles portal/theme/widget/login configuration.
- Ordinary page requests check portal activation and portal/page code requirements. A closed portal redirects to the closed view; discovery/infrastructure routes have separate handling.
- The route resolves an active portal-page link and authenticates through the supported portal/reader guard when required.
- The audience gate admits or denies the viewer; an audience-denied page returns 404.
- Plugin-backed content is rendered with the installed version, merged settings/strings, signed assets, runtime API context and Public/Private layout selection. A native plugin-free registration form has its own renderer and update-only login behavior.
- The theme loads the layout, while navigation is filtered for the current viewer and APIs apply their own page/dependency authorization.
This is the application flow, not a promise about a particular deployment's proxy ports, certificate readiness or hardware.
Entry pages and navigation
An explicitly stored active default page takes precedence. It is selected before the viewer's audience check, so an excluded viewer can reach a login/denial outcome rather than another landing page.
With no explicit default, the root chooses the first active audience-accessible page in portal order. No eligible page produces the system code-authentication view. Navigation independently selects active navigation-enabled links and removes audience-denied items after the shared cache. Direct URL and API checks remain necessary.
These are stored runtime flags, not a promise of dashboard toggles. The reviewed Page List editor offers order and plugin-defined navigation flags without dedicated Active/navigation-enabled/default-page controls. Use its supported ordering, audience and detach workflows; distinguish the project-level Is Default Portal setting from entry-page behavior.
Theme runtime
Legacy themes render Public, Private or System runtime templates with a default content slot. Compiled themes dynamically load one layout module, pass layoutType and filteredNav, and place page content in its slot. The selected theme's actual mounting behavior governs app/global-component presentation.
New portal creation without a supplied theme-version ID selects the most recently updated theme version in the reviewed request. Changing the theme resets its version pin to current-version fallback. Inspect the resulting version; these paths do not establish an immutable published pin automatically. See Build a Theme.
Apps, versions and data context
The App Store's regular installer pins a ProjectPage to the app's current version. A form-template install instead creates a ProjectForm with current-version fallback. The optional navigation attachment targets an existing default portal; it does not create one.
The plugin renderer merges version configuration defaults with installed settings and default strings with language overrides. It supplies projectId, apiBaseUrl, apiPageAuthId, asset URLs and optional form/schema values. A draft version can use an active healthy development-session preview; verify the production bundle separately.
A valid explicit version pin remains fixed when the plugin's default changes. A current-version fallback can follow a changed default. Existing page/form/widget explicit version changes are super-admin restricted. Source behavior does not prove every published package or target device is compatible.
Authentication and API authorization
Administrator, attendee, reader, project, portal-page and widget credentials identify different principals. An administrator dashboard login is not an attendee login. A browser attendee session and an issued bearer also have different storage/expiry/transport contracts.
A page key in X-Portal-Page-Token supplies API page context; an individual attendee bearer belongs in Authorization. Page-key handling checks the page's active state, login requirement, same-project attendee/active-reader context and effective audience before dependency access. An active same-project reader can satisfy the general login gate but evaluates content audiences as a guest; attendee-only quiz endpoints still need an attendee.
Widgets are separate token principals and do not supply independent project API scope through the base page policy. Project tokens are server credentials; their documented enforcement limits are separate from the page-key path. Use Authentication Overview and Permissions and Dependencies.
The current authentication editor is super-admin UI gated. SSO provider duration is not enforced by its reviewed handlers; the portal's Redis session lifetime and API token duration are separate. See SSO Configuration.
Access codes and widgets
A portal-wide code gate can precede login. Page-level code and authentication choices are mutually exclusive in the supported edit request. The code's active portal-scoped ID is stored in the session; it does not create attendee identity or API permissions.
Widget libraries are assembled into initial HTML, and app/form global components are supplied separately. The legacy Private branch automatically mounts those components; other surfaces and compiled themes require verification. The reviewed parser does not filter is_enabled, so that stored field alone is not a reliable removal control. Use the supported detach flow and inspect the reloaded result.
Cache and session lifecycle
Configuration uses several caches: a five-second assembled page configuration, longer host/project/portal/theme lookup caches and five-minute page/navigation/widget/method data. Audience evaluation remains per viewer after cached navigation. API-domain resolution has a separate short cache.
Portal/page/widget/domain observers and update services invalidate relevant caches. A save/reload test is still needed; cached configuration and an existing attendee session are different state. The timeout middleware records activity, while the custom Redis handler applies session TTL on writes. Verify the deployed driver, cookies, remember-me and real idle behavior before relying on expiry.
Acceptance
Test root and direct routes as guest, allowed/excluded attendee and different-project identity. Verify domain/default selection, final theme/version, real bindings, signed assets, API denials, widget removal and mobile rendering. DNS/SSL, real identity-provider round trips, session revocation/expiry and target-device compatibility remain separate acceptance gates.
Use Install an App on a Portal, Project Acceptance, Troubleshooting and the detailed runtime reference.
Source evidence
Reviewed Experience Portal 7f2ea7c1635fea7ebc975abe31d895d51b6aa6f3: installation/current-version behavior, portal models/controllers/middleware, rendering, session and cache services, domain attachment and frontend layout. Repository audit evidence records the exact reviewed/tested hashes and execution limits; static and synthetic checks do not establish full deployment acceptance.