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:
- Go to your site.
- Select Pages, and then select the page to which you want to restrict user access.
- Select the module or fragment slot, and then select Edit.
- In the properties pane, select Requires sign-in? > Finish editing.
- Select Publish.
To block the creation of new users in Microsoft Entra ID, follow these steps:
- Go to the Azure portal.
- Select the Azure AD B2C application that you created for your site access.
- In the left navigation, select User flows.
- At the top of the User Flows page, select New user flow.
- On the Select a user flow type page, select Preview.
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for