Skip to main content

BigCommerce Customer Identity and Access Management Plugin - Stencil


BigCommerce Stencil is the current theming framework used in modern BigCommerce stores. The LoginRadius CIAM (Customer Identity and Access Management) plugin for Stencil allows seamless integration of user authentication, registration, social login, and Single Sign-On (SSO) into your BigCommerce storefront.

This guide explains how to install the plugin, configure SSO settings, update theme files, and enable advanced identity features using LoginRadius, ensuring secure customer access and identity management.

Use Cases

  • Unified Login and Registration: Centralize user identity using LoginRadius forms across login, register, and password reset experiences.

  • Social Login Support: Let users sign in with their Google, Facebook, or other social identities.

  • SSO Integration: Authenticate users via LoginRadius and create sessions directly in BigCommerce.

  • Customer Profile Management: Store, manage, and retrieve customer identity data through LoginRadius.

  • Multi-Store Support: Manage identities across multiple BigCommerce storefronts under one identity platform.

How It Works

The integration relies on the LoginRadius SSO Connector to bridge authentication with BigCommerce. The diagram below illustrates the end-to-end flow:

Step-by-step Breakdown

  1. User Accesses Login Page
    The user navigates to your BigCommerce login page.

  2. LoginRadius Form Captures Credentials
    Login credentials are entered via the embedded LoginRadius form.

  3. LoginRadius Authenticates and Initiates SSO
    LoginRadius validates the credentials and initiates the SSO flow.

  4. Check for Existing BigCommerce User
    The module checks if a user with the given email exists in BigCommerce.

  5. Account Handling

    • If the user exists, LoginRadius links the account.

    • If the user does not exist: A new account is created in BigCommerce.

  6. Session Creation
    A session is created in BigCommerce using user details from LoginRadius.

  7. User Login Complete
    The user is logged in and redirected to the storefront or account page.

Requirements

To integrate this plugin successfully, ensure the following prerequisites:

  • An active BigCommerce store using the Stencil theme.

  • A LoginRadius Enterprise account.

  • Access to BigCommerce theme files and Stencil CLI.

  • BigCommerce API credentials with appropriate access levels.

BigCommerce Integration Setup

The following tabs guide you through the essential steps for integrating LoginRadius with your BigCommerce store: installing the app, generating API credentials, and configuring the LoginRadius dashboard.

Install the LoginRadius app from the BigCommerce marketplace to connect your store with LoginRadius:

  1. Log in to your BigCommerce Admin Console.
  2. Go to Apps > Marketplace.
  3. Search for LoginRadius and click Install.
  4. After installation, select the app from the sidebar.
  5. Enter your LoginRadius API Key and API Secret, then click Validate and Install.

Stencil Theme Setup

The Stencil Theme Setup section outlines how to integrate the LoginRadius authentication components into your BigCommerce Stencil theme. You'll learn how to prepare your theme, update LoginRadius configuration, embed auth interfaces, and publish the modified theme.

Backup your theme before making changes.

  • Install Stencil CLI if it is not already installed.
  • Download and unzip your current theme.
  • Extract and open the LoginRadius Stencil Package.

Panel Component Reference

ComponentPurpose
authFull LoginRadius authentication UI
loginTraditional login only
socialSocial login only
registerTraditional registration
verifyEmail verification
forgotForgot/reset password
accountdetailsProfile management
changepasswordChange password UI
emailmanageAdd/Remove email UI
profileeditorProfile update interface
LoginRadiusOptimizedCheckoutReplaces checkout authentication UI

Storage of BigCommerce Customer ID

LoginRadius stores the BigCommerce customer_id in the ExternalIds array within the customer profile:

"ExternalIds": [
{ "Source": "BigCommerce-myStore", "SourceId": "6" }
]

Supports multiple stores:

"ExternalIds": [
{ "Source": "BigCommerce-storeA", "SourceId": "6" },
{ "Source": "BigCommerce-storeB", "SourceId": "21" }
]

Additional Considerations

  • Include a dedicated verification page when using emailmanage or accountdetails.

  • You can embed LoginRadius components into any page and style them freely.

  • Use LoginRadius JS SDK to access session details.

  • Avoid exposing sensitive credentials like API secrets in frontend code.

  • Contact LoginRadius Support if you are migrating users or want to preserve passwords.

Uninstall Process

If removing the LoginRadius plugin:

  • Delete all LoginRadius-related files from assets/ and components/.

  • Restore original templates:

    • login.html

    • create-account.html

    • header.html

    • Any other modified components or includes.