02-01-2022 10:05 AM
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.
02-05-2022 02:13 PM
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
02-01-2022 11:23 AM
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:
02-01-2022 02:41 PM
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.
02-02-2022 04:21 AM
That is harder, but you still can get a session ticket and use them along with your REST requests.
02-04-2022 06:49 PM
@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?
02-05-2022 02:13 PM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.