As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<webscript> <shortname>Get current ticket</shortname> <description>Returns a valid ticket for the currently logged in user </description> <url>/auth/get-ticket</url> <format default="json" /> <authentication>user</authentication> <transaction>none</transaction> </webscript>
model.sessionTicket = session.getTicket();
<#escape x as jsonUtils.encodeJSONString(x)> { "ticket": "${sessionTicket}" } </#escape>
<endpoint> <id>alfresco-api</id> <parent-id>alfresco</parent-id> <name>Alfresco Public API - user access</name> <description>Access to Alfresco Repository Public API that require user authentication. This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description> <endpoint-url>http://localhost:8080/alfresco/api</endpoint-url> <identity>user</identity> </endpoint>