cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically Log in to Alfresco share.

macleod
Champ in-the-making
Champ in-the-making
Hello All,

I am currently writing a web app which, when prompted by the user, programattically creates a document in .odt form and uploads it to alfresco. A simple workflow then copies this document to a drafts folder and transforms it to microsoft .doc format.

So far so good.

The problem lies in sending the user view this generated .doc file.

The upload is authenticated using the users login details from an LDAP server, to acquire a ticket. One of our requirements is to automatically re-direct the user to the the generated file in alfresco share.  I have thus far been unable to work out how to authenticate the user without them having to re enter their login details.

Is this possible?

Thanks.

Al
1 REPLY 1

fstnboy
Champ on-the-rise
Champ on-the-rise
Hi Al,

You'll need to add this config to <TOMCAT_HOME>/shared/classes/alfresco/web-extension/share-config-custom.xml:


<config evaluator="string-compare" condition="Remote">
      <remote>
         <keystore>
             <path>alfresco/web-extension/alfresco-system.p12</path>
             <type>pkcs12</type>
             <password>alfresco-system</password>
         </keystore>
        
         <connector>
            <id>alfrescoCookie</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using cookie-based authentication</description>
            <class>org.springframework.extensions.webscripts.connector.AlfrescoConnector</class>
         </connector>
        
         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfrescoCookie</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
         </endpoint>
      </remote>
   </config>


Hope this helps,

Adei