AnsweredAssumed Answered

Ticket authentication using new OpenCMIS URLs in Alfresco 4

Question asked by amitp85 on May 3, 2012
Latest reply on Aug 17, 2015 by ctan
Starting with Alfresco 4, the web script based CMIS implementation (http://localhost:8080/alfresco/service/cmis) is deprecated. Where possible, you should use the OpenCMIS implementation instead (http://localhost:8080/alfresco/cmisatom).

In a quick test using curl, I noticed that when a user does not have access to Company Home, the old implementation fails while the new implementation succeeds.


Dear Jeff,

How should I authenticate the user to access http://localhost:8080/alfresco/cmisatom ? I've tried sending "alf_ticket" (http://localhost:8080/alfresco/cmisatom?alf_ticket=TICKET_bdbd0697d81a40f782ba8b54615abad21dc663fd) parameter obtained from http://localhost:8080/alfresco/service/api/login?u=username&pw=password. But still cmisatom gives "Authorization Required" error. I'm trying to hit URLs using curl not using any API.

Though HTTP authentication works (curl –user "username:password" http://localhost:8080/alfresco/cmisatom). But that way I have to send it with each request and alfresco will authenticate user everytime. Is there a similar way to use session token like alf_ticket with cmisatom url ?

Alfresco version: 4.0.c