Restrict Access to Non-Logged-In Users

Feature Description

This feature ensures that only authenticated B2B users can access your store’s content. When enabled, any non-logged-in visitors are automatically blocked from viewing restricted pages or data. Admins can optionally whitelist specific pages (such as login, signup, or informational pages) to remain accessible to all users. This helps maintain security and control over who can view your B2B storefront.

Setup Instructions
  • Now, navigate to the Shopify Dashboard, and open the miniOrange SSO application.

    Navigate to Shopify Dashboard

  • On the left, click on B2B. In the Configure B2B Features section, click on Configure.

    Configure B2B Features

  • In the B2B Restriction Settings tab, enable the toggle of Restrict Access to Non-Logged-In Users to ensure that only authenticated B2B users can access your store’s content, while non-logged-in visitors are blocked except for whitelisted pages.

    Enable Restrict Access to Non-Logged In Users

  • Enable the feature, and click on Save.

  • Whitelisted pages are accessible by all users, including B2B, non-B2B, and non-logged-in users.

  • Click on Add Pages to products to be whitelisted.

    Shopify B2B Whitelist Pages

  • To complete this configuration of restricting access to non-logged-in users, we need to enable the b2b restrict store access extension.

    Shopify B2B Enable b2b restrict store access Extension

  • You will see the extension being enabled. Below is the warning template that will be displayed to non-logged-in users.

    Shopify B2B Access Required

  • You can fully customize this template, including the overlay title, body and button text, and support link.

  • After configuring the template according to your requirements, click Save.