Head to the Integrations Hub, and choose Connectors > Single Sign On > Salesforce (OAuth)
Give the integration a name
For the login URL, head to your Salesforce Admin Setup, search for Digital Experiences > All Sites, and find the URL of the site
Copy and paste this URL into Login URL, then click Credentials,Add Credentials, and choose Using admin token link
Press Add
Then press Save
Now Paste this url into a new browser tab and you may be prompted to log back in to Salesforce
Click Allow, if all works well you’ll see a simple Done message
Refresh the page then choose Field Mapping
You can Modify the Field Mapping from the defaults, and once ready choose Publish
Go Back to Settings and Copy the Begin Url
Head back to OpenWater, and in the left menu choose System Settings > Login Configuration
Choose Use 3rd Party Corporate Authentication, then Json Web Token. Paste the begin url into the Login Url area. And enter the secret you had set during the preparation steps.
Press Save
Then load the Public Website in an Incognito Window
Click the Login with Salesforce button
Login with your Salesforce Digital Experience / Community user account info. This is not the same as your admin account.
To confirm you have it working correctly, head to the javascript console and enter window.currentUser.externalAccountData
Nice work, you are all set with Single Sign On! High-five yourself, you did it!
Testing Your New SSO
As with any new integration or workflow, testing is super important! You can now load up your site in an incognito window, then test out your login.
Connect an SSO with Salesforce (OAuth)
Use the Integrations Hub module to connect a single sign on to Salesforce using OAuth.

Written by Cheryn
Updated over 2 weeks ago