Powered By Blogger

Friday, October 28, 2011

Liferay and Alfresco Doclib integration

Alfresco uses org.springframework.extensions.webscripts.connector.HttpConnector to talk with
Alfresco. This has the hardcoded value
headers.put("X-Alfresco-Remote-User", user);

Since it is hardcoded,if we change the value of th eheader then the authentication will not be respected.

So change the code to fir the your custom external key CTUSER defined in your external file.






alfresco-noauth
Alfresco - unauthenticated access
Access to Alfresco Repository WebScripts that do not require authentication
alfresco
http://localhost:8080/alfresco/s
none



alfresco-feed
Alfresco Feed
Alfresco Feed - supports basic HTTP authentication
http
http://localhost:8080/alfresco/s
true
user



alfrescoCookie
Alfresco Connector
Connects to an Alfresco instance using cookie-based authentication
org.springframework.extensions.webscripts.connector.AlfrescoConnector



alfresco
Alfresco - user access
Access to Alfresco Repository WebScripts that require user authentication
alfrescoCookie
http://localhost:8080/alfresco/wcs
user
true





No comments:

Post a Comment