AnsweredAssumed Answered

How to authenticate user using OpenCMIS

Question asked by aoakash83 on Jul 29, 2014
Latest reply on Aug 9, 2014 by jpotts
Hello Everyone,

I am new to Alfresco & OpenCMIS, infact started working just 3 days ago.
I am writing a Rest service to upload a document in the alfresco repository using OpenCMIS API.

I am able to upload/create the document in the repository by establishing connection using http://localhost:8080/alfresco/service/cmis with admin id/password.

Now the rest service can be invoked by any user and I want to know that:

1)How can I authenticate that user and check whether he has enough access to upload the document in the folder?
2) I have tried to run the application by changing the credentials in cofig file and provide non admin user & paswword, however this user has admin access but I am getting exceptions. Same thing is happening with other user ids too? In short it works only with admin id.

Please help.

Environment Details:

Windows 7
Chemistry OpenCMIS 0.11.0
Alfresco alfresco-community-4.2.c-installer-win-x32

Outcomes