Skip to main content

Connect an SSO with Salesforce (OAuth)

Use the Integrations Hub module to connect a single sign on to Salesforce using OAuth.

Cheryn avatar
Written by Cheryn
Updated over 2 weeks ago
  1. Head to the Integrations Hub, and choose Connectors > Single Sign On > Salesforce (OAuth)

  2. Give the integration a name

  3. For the login URL, head to your Salesforce Admin Setup, search for Digital Experiences > All Sites, and find the URL of the site

  4. Copy and paste this URL into Login URL, then click Credentials,Add Credentials, and choose Using admin token link

  5. Press Add

  6. Then press Save


  7. Now Paste this url into a new browser tab and you may be prompted to log back in to Salesforce

  8. Click Allow, if all works well you’ll see a simple Done message

  9. Refresh the page then choose Field Mapping

  10. You can Modify the Field Mapping from the defaults, and once ready choose Publish

  11. Go Back to Settings and Copy the Begin Url

  12. Head back to OpenWater, and in the left menu choose System Settings > Login Configuration

  13. 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.

  14. Press Save

  15. Then load the Public Website in an Incognito Window

  16. Click the Login with Salesforce button

  17. Login with your Salesforce Digital Experience / Community user account info. This is not the same as your admin account.

  18. To confirm you have it working correctly, head to the javascript console and enter window.currentUser.externalAccountData

  19. 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.

Did this answer your question?