Redaguoti

Bendrinti naudojant


How to restrict access to a storefront during testing or development

This article introduces how to restrict access to your site to prevent external users from accessing the published storefront pages during internal testing or active development in Microsoft Dynamics 365 Commerce.

Set up Azure AD B2C by using standard user flows

For information about how to configure Azure Active Directory B2C (Azure AD B2C) for your e-commerce site, see Set up a B2C tenant in Commerce.

Restrict user access to storefront pages and block the creation of new users

To restrict user access to storefront pages in Commerce site builder, follow these steps:

  1. Go to your site.
  2. Select Pages, and then select the page to which you want to restrict user access.
  3. Select the module or fragment slot, and then select Edit.
  4. In the properties pane, select Requires sign-in? > Finish editing.
  5. Select Publish.

To block the creation of new users in Microsoft Entra ID, follow these steps:

  1. Go to the Azure portal.
  2. Select the Azure AD B2C application that you created for your site access.
  3. In the left navigation, select User flows.
  4. At the top of the User Flows page, select New user flow.
  5. On the Select a user flow type page, select Preview.
  6. In the middle of the page, select Sign in v2. Then follow the steps in Set up a B2C tenant in Commerce to configure the flow as your site's standard user flow for Azure AD B2C during testing or development.

More information

Set up custom pages for user sign-ins