Hybrid Auth Environments and Routing (All Architectures)

Hybrid Auth works across all B2C Commerce environments. The core setup is identical in every environment—only the traffic routing differs. Use this page to find the setup guide for your architecture and instance type, see what changes per environment, and decide which routes each runtime owns.

Start here. The core Hybrid Auth configuration is the same for every architecture and instance type—only the routing setup differs by environment. Follow the guide for your architecture and instance type:

ArchitecturePIGODSLocalhost
Storefront NextUse Storefront Next in a Hybrid ImplementationSet Up Hybrid on ODS Using eCDNSet Up Hybrid Proxy Locally
PWA Kit / Composable StorefrontConfigure a Hybrid Storefront with Hybrid Auth (PWA Kit)PWA Kit ODS via eCDNPWA Kit local development
Custom headless + SFRAHeadless Storefront + SFRA Hybrid Setup (Step 4)same (Step 4)same (Step 4)
SFRA/SiteGenesis onlySFRA and SiteGenesis Hybrid Setup (Existing Customers) (Business Manager only; no eCDN unless adding a headless runtime)samesame

This table summarizes what differs by instance type, regardless of architecture:

EnvironmentDescriptionHybrid Auth in Business ManagerRuntime Environment VariablesRouting Setup
PIG (Primary Instance Group)Production, staging, and development instancesRequiredRequiredeCDN, configured in the Business Manager UI
ODS (On-Demand Sandbox)On-demand sandboxes in the Secondary Instance Group (SIG)RequiredRequiredeCDN, configured in the Business Manager UI
Localhost (local development)A headless runtime running locally during developmentRequired (target sandbox/site)Required for local runtimeLocal proxy-based routing instead of eCDN

In a hybrid storefront, decide which requests your headless runtime serves and which stay on SFRA/SiteGenesis. The following principles are conceptual guidance—for concrete, copy-ready rules, use the canonical matrix for your architecture below.

  • Route top-of-funnel discovery paths (home, category, product, search) to the headless storefront runtime.
  • Route transaction-critical legacy flows (cart, checkout, account) to SFRA/SiteGenesis until they are migrated.
  • Keep path ownership explicit and avoid ambiguous overlap between runtimes.
  • Validate redirects and cookie/session propagation during each path transition.

Use the ready-to-use split configurations in the matrix for your architecture:

To configure eCDN routing rules in the Business Manager UI (PIG and ODS), see CDN Routing Rules for Hybrid Implementations.

  • Do not use localhost proxy settings in production environments.
  • Keep SLAS client and site configuration aligned across all environments.
  • Validate auth/session sync after every environment change.