Configuration reference: settings and out of the box defaults

Configuration reference: settings and out of the box defaults

3B Portals configuration lives in two places: the Portal__c hierarchy custom setting (org wide runtime config) and PWA and branding fields on each Web_Portal__c record.

Portal custom setting (Portal__c)

Portal__c is a hierarchy custom setting, so values resolve per org, profile, or user. The host pages pass the values the frontend needs. Set the org default values in Setup, Custom Settings, Portal.

Field Type Default Controls
Passkeys_Enabled__c Checkbox false Enables optional passkey login when Passkey Origin is valid. Email-code login remains available.
Passkey_Origin__c Text(255) blank Exact HTTPS origin for passkeys, such as https://portal.example.com. Use a lowercase hostname with no path, query, port or trailing slash. One origin per effective settings record. See Passkey login.
Send_Verification_Email__c Checkbox false Enables packaged verification emails. Configure the sender before enabling.
Verification_Email_Sender__c Email blank Verified organization-wide sender address, accessible to the Site guest profile.
Verification_Email_Template__c Text(255) blank Active Classic custom HTML or text template unique name. Blank uses b3p__Portal_Verification_Code.
Max_Incorrect_Code_Attempts__c Number(3,0) 3 Consecutive incorrect verification codes before disabling the Contact. Blank or less than 1 uses 3. Applies even when packaged email delivery is off. See Verification emails and code lockout.
Site_URL__c URL (required) Public site base URL that serves static resources and the portal. Used to build service worker, manifest, and resource URLs.
Files_Endpoint__c URL (required) 3B hosted file service External large files service for uploads and downloads over 3 MB.
Portals_are_SPA__c Checkbox false If checked, portals render as a single page app with in place navigation instead of full page reloads.
Portal_Magic_Link_Validity__c Number(4,0) 14 Days a magic link and session key stays valid from creation.
One_Time_Magic_Links__c Checkbox false Makes magic links single use. See Magic links and session keys.
Secure_Session_Keys__c Checkbox false Check once every installed 3B package supports signed session keys. Switches portals to signed session keys that always expire and are revoked on logout. Rejects existing legacy sessions and legacy magic links. Marked as a temporary migration setting.
Expire_Session_Keys__c Checkbox false Only used while Secure_Session_Keys__c is unchecked. With it checked, session keys and magic links always expire.
Session_Length_Minutes__c Number(6,0) blank Caps a portal session at this many minutes, after which the user is logged out automatically. With Secure Session Keys on, blank means a session lasts as long as Portal_Magic_Link_Validity__c. With it off, expiry follows Expire_Session_Keys__c.
Authorization_Session_Length__c Number(18,0) 3600 Guest authorization session length in seconds.
AI_Provider__c Text(255) openai AI Studio provider. openai or claude.
AI_Model__c Text(255) gpt-5.4 AI Studio model id, for example gpt-5.5 or claude-sonnet-5.
AI_API_Key__c Text(255) Your supplier API key for the AI Studio. Restrict builder access, because the builder works with this key.
AI_Endpoint__c Text(255) https://ai.3bapi.com/ai The 3B AI service endpoint the builder calls. Add a Trusted URL if you change the host.
Google_Fonts_API_Key__c Text(255) blank Your own Google Fonts API key. Enables the Install Fonts panel and Google Fonts in the builder.
GCM_Key__c Text(255) DEPRECATED. Legacy push key.
API_Username__c Text(255) DEPRECATED.
API_Password__c Text(255) DEPRECATED.
API_Token__c Text(255) DEPRECATED.
Authorization_Named_Credential__c Text(255) DEPRECATED. No named credential is needed.

The four DEPRECATED fields are retained for backward compatibility and are not used by current code.

Web Portal PWA and branding fields (Web_Portal__c)

Each portal record carries the PWA manifest and branding settings that the runtime reads to build the installable app. These feed the dynamically generated web app manifest and meta tags. See Progressive Web Apps.

Field Default Controls
Branding_Resource_Name__c b3p__Branding Static resource holding the 192px and 512px logos and icons.
Enable_Installation_Prompts__c false Shows installation guidance after the first successful page load. See App installation prompts.
PWA_Short_Name__c 3B Home screen short name.
PWA_Description__c Manifest description.
PWA_Start_URL__c /b3p__Portal#Index URL the installed app opens at.
PWA_Theme_Color__c #00ca72 Manifest theme colour and browser chrome colour.
PWA_BG_Color__c #ffffff Splash and background colour.
PWA_Status_Bar_Type__c black-translucent iOS status bar style.
PWA_Viewport__c width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no Viewport meta.

The Web Portal also holds three lookups that shape behaviour: Home_Page__c (landing page), Page_404__c (not found page), and Emulated_Contact__c (the Contact used as the running user when Preview is clicked in the builder).

Web Portal registration setting (Web_Portal__c)

Disable Self Registration (Disable_Self_Registration__c) is a checkbox, off by default. Select it to hide registration and reject new self-registration requests for that portal while retaining sign-in for existing Contacts. Portals Admin includes read and edit access. See Login and registration for custom integration behaviour.

Web Portal offline and caching fields (Web_Portal__c)

These two fields sit in the Offline and Caching layout section and are editable with the Portals Admin permission set. Full detail, including the mandatory Site setup step, is in Offline support and caching.

Field Type Default Controls
Caching_Strategy__c Picklist NetworkOnly The strategy the offline worker applies to the portal page, static resources and router data calls. NetworkOnly means offline support is off.
Cache_Max_Age_Minutes__c Number 120 How long a cached page, asset or data response is treated as fresh, and how long a page template is kept in the on device template cache. The template cache window applies under every strategy.

Picklist values for Caching_Strategy__c:

Value Label Behaviour
NetworkOnly Network Only (offline support off) No offline worker caching. The default.
NetworkFirst Network First (network falling back to cache) Try the server, fall back to cache when the network fails.
StaleWhileRevalidate Stale While Revalidate Answer from cache immediately, refresh in the background.
CacheFirst Cache First (cache falling back to network) Use the cache while younger than Cache Max Age, otherwise fetch.
CacheOnly Cache Only Never go to the network. Kiosk devices that were fully warmed up.

Offline support is only registered for guest and community users on the Site domain, and only when the strategy is not NetworkOnly. Writes are never cached: they go to the network, or are queued for background sync when the device is offline. Before this release the on device template cache was fixed at 120 minutes, so the field default preserves existing behaviour.

Passkey requests always require a network connection, including under Cache Only. They bypass response caches and offline queues.

Page level settings (Page__c)

Field Default Controls
Web_Portal__c Lookup to the parent portal.
Title__c Page title, written into the document title on render.
Guest_User_Accessible__c false If checked, unauthenticated users can view the page. If unchecked, the page triggers the login flow.
Disable_Caching__c false If checked, the runtime does not cache this page template. Otherwise it is cached for the portal's Cache_Max_Age_Minutes__c window, 120 minutes by default.
Suppress_Push_Prompt__c false Prevents the notification permission prompt while this page is displayed.
Sub_Template__c false If checked, the page is a reusable fragment that other pages can embed.

Firebase push config

The client Firebase web config (apiKey, authDomain, projectId, storageBucket, messagingSenderId, appId, measurementId) is passed to the runtime by Portal.page. The server side service account credentials live in the Google_Service_Auth__mdt record named Push. See Installation and setup and Push notifications.