Cartridge configuration
This page explains how to implement the ReachFive cartridges with your Salesforce Commerce Cloud (SFCC) setup. This tutorial outlines the SRFA cartridge, but the steps are generally the same for SiteGenesis.
The configuration on this page handles the general configuration for the cartridges. For specific use cases, see Cartridge configuration: use cases.
Prerequisites
-
You must have access to the ReachFive Console.
-
You must have a SalesForce Commerce Cloud account.
-
You must be able to access the ReachFive SFCC cartridges on GitHub.
-
You’ll likely need the SalesForce authenticator app when logging into your SFCC account.
First steps
The first thing you need to do is import the latest ReachFive cartridges into your SFCC project and import the preferences and metadata. After you successfully import the cartridges, we’ll move on to configuring what you need to do in your SFCC project and in the ReachFive Console.
Let’s get started.
-
Go get the ReachFive cartridges from GitHub. You’ll need the
int_reachfive
andint_reachfive_srfa
for this tutorial.You can download the files directly from the root of the repository. -
Add the cartridges to a directory in your project.
-
Go to the directory
Metadata/site_template
.-
Download and zip this folder so that it saves as
site_template.zip
.
-
-
Now, go to your SFCC Business Manager account.
-
Navigate to
. -
Upload the
site_template.zip
file.
Configure SFCC
You’ll need to input some ReachFive values in your SFCC dashboard after you have uploaded the cartridges.
The main steps are:
-
updating cartridges in your site settings
-
configuring custom preferences for your ReachFive cartridge
Update cartridge in site settings
From your SFCC Business Manager dashboard:
-
Go to
. -
Select your desired site.
-
Go to the Settings tab.
-
Where it says Cartridges, append the following:
int_reachfive_srfa:app_storefront_base:int_reachfive
-
Click Apply.
Configure custom preferences
There are some baseline custom preferences needed for your cartridge depending on the mode (Social Login, Transition, or Full CIAM). These are covered here.
Configure these preferences in your SFCC Business Manager dashboard at
.Social Login | Transition | Full CIAM | |
---|---|---|---|
SFCC Preferences |
|||
|
|||
|
|||
|
|||
|
|||
ReachFive |
|||
Identity Client |
|||
Management Client |
|||
SSO |
|||
Social providers |
|||
Email provider and templates |
Configure ReachFive
Now that you have imported the cartridges into your project and the metadata and preferences (site_template.zip
) into your SFCC Business Manager account, we can look at what we need to do from the ReachFive side of things.
Set up ReachFive clients
You need to set up and configure both the Identity and Management clients.
Identity Client
-
Go to your ReachFive Console. This could be staging or production. For example purposes, we’ll use the staging ReachFive Staging Console.
-
Go to
. -
Select New client.
-
Give the client a name and select the Client type (Identity in this case) from the dropdown menu. Don’t forget to Save your input.
-
Follow the instructions to create or edit an Identity Client on the Clients page and ensure the following values are added where noted:
Field Value Scopes
-
openid
-
profile
-
full_write
Token Endpoint Authentication Method
Post
Allowed Origins (CORS)
https://{domain}
This is your SFCC domain.
Allowed Callback URLs
-
https://{domain}/on/demandware.store/Sites-RefArch-Site/en_US/Login-Show
-
https://{domain}/on/demandware.store/Sites-RefArch-Site/en_US/ReachFiveController-CallbackReachFiveRequest
Get your domain from your Settings in the ReachFive Console. Token lifetime (seconds)
86400
Disabled implicit flow
Yes
Enforced PKCE
No
Enable Refresh Tokens
No
JWT Algorithm
HS256
Login URL
https://{domain}/on/demandware.store/Sites-RefArch-Site/en_US/Login-Show
Get your domain from your Settings in the ReachFive Console. -
Management Client
-
Go to your ReachFive Console. This could be staging or production. For example purposes, we’ll use the staging ReachFive Staging Console.
-
Go to
. -
Select New client.
-
Give the client a name and select the Client type (Management in this case) from the dropdown menu. Don’t forget to Save your input.
-
Follow the instructions to create or edit a Management Client on the Clients page and ensure the following values are added where noted:
Field Value Permissions
-
manage:users
-
read:users
Allowed IP address
Token Endpoint Authentication Method
Post
Allowed Origins (CORS)
https://{domain}
Get your domain from your Settings in the ReachFive Console. Token lifetime (seconds)
86400
Disabled implicit flow
Yes
Enforced PKCE
No
JWT Algorithm
HS256
-