Search code examples
phpalfrescocmisecmapache-chemistry

How to get the URL for a document in Alfresco using the PHP CMIS API?


I have already constructed a query that returns all of the relevant documents that I may need from the alfresco repository. But I don't know how to link to them so that I can access them.

Once I retrieve the list of documents I tried using the getContentStream() function but that requires that I input credentials into a prompt. I need a way to access that document externally without re-authenticating. I already authenticate and connect using the PHP CMIS API, the users will not have alfresco accounts themselves.


Solution

  • You need to write a proxy that will fetch the content stream on the user's behalf using the existing CMIS session, then stream it back to the client making the request.

    Jeff