Limit Access to a Storefront Under Development

To limit access to a storefront that’s under development to only users from your Managed Runtime (MRT) organization, enable Protected Storefronts in Business Manager for the associated site. The protected storefront’s environment requires a basic auth password that organization users provide.

  1. Make sure the correct B2C Commerce instance and site IDs are configured for the MRT environment. To verify these settings in Runtime Admin, go to the project and environment, and then click Environment Settings.
  2. (Optional) For storefronts not created in Business Manager or through site export & import, connect them to B2C Commerce. See Connect an Existing Storefront to B2C Commerce.
  3. Set the site status and options.

a. In Administration > Sites > Manage Sites, click the site, and then click the Site Status tab.

b. For the Site Status, select Online (Protected).

c. Select Access using shared password.

Select a site status and shared password for the protected storefront

d. Enter a shared password.

e. Deselect the Access using user’s password or access key and Access using Storefront Toolkit options because they don’t apply to PWA Kit storefronts or Storefront Next. Apply the changes.

Changes can take up to 5 minutes to take effect.

  • Protected Storefronts support only the shared password option.
  • For multi-site storefronts, enabling Protected Storefront on any one of the associated sites results in the environment requiring a basic auth password. If sites are configured with different passwords, the environment accepts any of the passwords.
  • For sites associated with multiple MRT environments, enabling Protected Storefront results in all environments requiring a basic auth password.
  • For sites with Protected Storefront enabled before you associated a Managed Runtime environment, disable and re-enable the Protected Storefront settings for the changes to take effect.