Environment Matrix

Plan dev, staging, and production embeds

Each environment should have explicit runtime URLs, allowed origins, identity configuration, certificate coverage, and validation checks.

Environment Matrix

EnvironmentPortal URLAura Home baseUrlIdentityCertificate
Developmenthttps://dev-portal.customer-domain.comCustomer or Cadisa dev runtimeTest IdP app or test tenantTrusted dev certificate
Staginghttps://staging.customer-domain.comStaging Aura Home runtimeStaging IdP app with production-like claimsTrusted staging certificate
Productionhttps://portal.customer-domain.comProduction Aura Home runtimeProduction IdP appProduction certificate with automatic renewal

Configuration Pattern

const aura = AuraHome.init({
  container: "#aura-home",
  baseUrl: window.AURA_HOME_BASE_URL,
  allowedOrigin: window.AURA_HOME_ALLOWED_ORIGIN,
  sdkHost: window.location.hostname,
  auth: {
    mode: "oidc",
    getToken: async () => customerIdentity.getIdToken()
  }
});

Per-Environment Values

ValueMust Be Different Per Environment?Notes
baseUrlUsually yesPoints the SDK at the target Aura Home runtime.
allowedOriginUsually yesMust exactly match the runtime origin.
theme.idSometimesVisual request only. It must be approved by the runtime allowlist or published through the dashboard Appearance Editor.
OIDC issuerSometimesSome customers use separate IdP apps for staging and production.
OIDC client ID or audienceOften yesRecommended when the IdP supports environment-specific applications.
Portal parent originYesRuntime allowlists should only include approved customer origins.

Production Promotion Checklist

  • Staging token claims match the production token contract.
  • Production certificate is valid and auto-renewal is active.
  • Production CSP allows the runtime and identity endpoints.
  • Production runtime allowlist includes the portal origin only.
  • Production appearance profile has been previewed and published for light, dark, or system mode.
  • SDK lifecycle events are monitored during the first launch window.