0

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?

PRVS
  • 1,612
  • 4
  • 38
  • 75
  • 1
    Where you are trying to get this ticket and for what? Add some more details. – mitpatoliya Jan 22 '16 at 20:29
  • for /alfresco/service/api/upload @mitpatoliya I have problems with this: http://stackoverflow.com/questions/34975107/alfresco-update-file-error-post I don't know if I need this... – PRVS Jan 24 '16 at 16:05

1 Answers1

2

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 !

Younes Regaieg
  • 4,156
  • 2
  • 21
  • 37