How to pass authentication from Share to custom webscripts on ACS? I currently have some surf webscripts that I will be backing with the repo authentication mechanism by adding <authentication>user</authentication>. I will be making javascript webservice calls from a custom page on Share. I see there are ways to do this if you are using Alfresco's REST API, but what about for endpoints that aren't part of the REST API?
Using ACS 7.0 Enterprise.
Solved! Go to Solution.
Actually, I found an easier way!
simply using the Share proxy. endpoint becomes localhost:8080/share/proxy/<alfresco repo endpoint> and Share takes care of the authentication. Easy Peasy
You can use the "remote" object from Share to perform your request. This handles Share authentication out of the box.
Sample code is available in:
I am setting up a single share page that uses jquery to post/get requests to ACS. I am guessing this would be single Share webscript written in JS to relay the communication between the page and the repository? Im thinking I can just simply make it generic enough to pass it a URL to hit and request body.
That is harder, but you still can get a session ticket and use them along with your REST requests.
@angelborroy wrote:That is harder, but you still can get a session ticket and use them along with your REST requests.
oh, are you thinking i setup a webscript that calls the ticket service and I can just pass that back and use it in subsequent calls?
Actually, I found an easier way!
simply using the Share proxy. endpoint becomes localhost:8080/share/proxy/<alfresco repo endpoint> and Share takes care of the authentication. Easy Peasy
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.