Alfresco Share dashlet controllers can be used to call internal (Alfresco Repository) as well as external restful web services. In our environment our external restful web services are protected by CAS. In order to authenticate calls from Alfresco Share dashlets, CAS proxy authentication protocol is used. You can find much about CAS, its supported clients and protocols on their web site at http://www.jasig.org/cas. Cas ProxyAuthentication requires proxy tickets to be submitted with each service call. Therefore, proxy ticket must be generated and attached to each http call from an Alfresco Share dashlet. Here is snippet of a controller from one of our dashlets. var hoursServiceUrl = remote.getEndpointURL("casProtectedService") + "/users/" + user.name + "/hours.json";
var proxyTicket = proxyTicketUtil.proxyTicket(hoursServiceUrl);
var hoursUrl = hoursServiceUrl + "?ticket=" + proxyTicket;
var hoursConnector = remote.connect(" casProte...
Keeping me and perhaps you up to date with focus on technology