To configure Single Sign On (SSO) between Content Services and the Salesforce Connector, you must add your Identity Service URL to JAVA_OPTS, and also configure your X-Frame-Options and Content Security Policy in the Identity Service.
Ensure you have the prerequisites installed and configured first.
-
Stop Alfresco Content Services.
-
Set
JAVA_OPTS=%JAVA_OPTS% -Dsfdc.config.trustedOrigins=<Identity Service URL>in:For Linux based users:
<TOMCAT_HOME>/bin/catalina.shFor Microsoft Windows users:
<TOMCAT_HOME>/bin/catalina.bat -
Navigate to your Identity Service and log in as an Administrator.
-
Log in to the Administration Console.
-
Select the Alfresco realm from the drop list on the top left.
-
Go to Realm Settings > Security Defenses tab.
-
Add
ALLOW-FROM <Your Salesforce URL>to the X-Frame-Options field. -
Add
frame-src 'self' <Your Salesforce URL>to the Content-Security-Policy field.Note
<Your Salesforce URL>can take two different forms:- For the Classic view, the URL will take the form
visual.force.com. - For the Lightning view, the URL will take the form
lightning.force.com.
- For the Classic view, the URL will take the form