I'm trying to use session.getTicket()
to obtain the authentication ticket of alfresco. But I get
"session is not defined"
I try too sessionticket.getTicket()
and gives me the same error.
Any help?
Since you are working on share, you are most probably authenticated.
If it is the case, you can access your alfresco repo through the proxy endpoint in share and all requests will have authentication ticket attached to them before getting forwarded to your repo !
In other terms, use this endpoint :
/share/proxy/alfresco/api/upload
Instead of :
/alfresco/service/api/upload
and You won't even have to attach a ticket to your requests !