I just created a web script to get the ticket of Alfresco Share. Steps which I done are;
1. Created getticket.get.desc.xml
<webscript>
<shortname>Get User Ticket</shortname>
<description>Personalized greeting</description>
<url>/getticket</url>
<authentication>user</authentication>
<negotiate accept="text/html">html</negotiate>
<negotiate accept="application/json">json</negotiate>
</webscript>
2. created getticket.get.html.ftl
${session.getTicket()}
I am trying to test external authentication. How can I get the ticket in my jsp page or in the java code?