cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing a custom repository webscript from the Browser

cfox
Champ in-the-making
Champ in-the-making
I am using Share to deploy custom YUI widget.  From the browser I am calling a custom repository webscript to access categories and nodes.  The browser prompts for authentication.  I assume the right way is to pass the login ticket.  How do I get the ticket and pass it to my YUI widget from the Share webscript?
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
You need to use the proxy servlet provided by Surf. Look at any of the existing Share code for examples, e.g.
Alfresco.constants.PROXY_URI + "api/node/" + record.getData("nodeRef").replace(":/", "") + "/content/thumbnails/doclib?c=queue&ph=true"

Thanks.
Mike

cfox
Champ in-the-making
Champ in-the-making
That did the trick.
Thanks!