
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
- Labels:
-
Alfresco Content Services

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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
