You are here

Configuring Alfresco Share to use an external SSO

Alfresco Share can be configured to accept a user name from an HTTP header provided by an external authentication system for Single Sign on (SSO).
This task assumes that you have already set up external authentication, as specified in External configuration properties.
  1. Go to the Share <web-extension> directory.
  2. Open the share-config-custom.xml file.
  3. Uncomment the second <config evaluator="string-compare" condition="Remote"> section.

    Note: There are multiple Remote configuration sections in this file. If you have multiple sections in a configuration file, then the last section is used.

    In this uncommented Remote section:

    1. Set the alfrescoHeader connector to use the same value that you defined for your external SSO property in External configuration properties:

      Change the <userHeader> property to the same value as the external.authentication.proxyHeader. This sets the same HTTP header value for both Alfresco Share and the Alfresco repository.

    2. Set the alfresco endpoint to use the alfrescoHeader connector:

      1. Change the <connector-id> value from alfrescoCookie to alfrescoHeader
      2. Change the <endpoint-url> value to your Alfresco server URL; for example, http://localhost:8080/alfresco/wcs.

    Note: This is an example file. Review the entries for userHeader, connector-id and endpoint-url:
            Overriding endpoints to reference an Alfresco server with external SSO
            NOTE: If utilising a load balancer between web-tier and repository 
            cluster,the "sticky sessions" feature of your load balancer must be used.
            NOTE: If alfresco server location is not localhost:8080 then also combine   
            changes from the"example port config" section below.
            *Optional* keystore contains SSL client certificate + trusted CAs.
            Used to authenticate share to an external SSO system such as CAS
            Remove the keystore section if not required i.e. for NTLM.
            NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to 
            NOTE: For external SSO, switch the endpoint connector to "AlfrescoHeader" 
                  and set the userHeader to the name of the HTTP header 
                  that the external SSO uses to provide the authenticated user name.
       <config evaluator="string-compare" condition="Remote">
                 <keystore-password> alfresco-system</keystore-password>
                 <truststore-path> alfresco/web-extension/ssl-truststore</truststore-path>
                <name>Alfresco Connector</name>
                <description>Connects to an Alfresco instance using cookie-based 
                <name>Alfresco Connector</name>
                <description>Connects to an Alfresco instance using header and 
                 cookie-based authentication
                <name>Alfresco - user access</name>
                <description>Access to Alfresco Repository WebScripts that require user
  4. Save the file and then restart Share.

    Activating external authentication makes Alfresco accept external authentication tokens, make sure that no untrusted direct access to Alfresco HTTP or AJP ports is allowed.

You have configured Alfresco Share to use an external SSO.