PRVS
PRVS

Reputation: 1690

Root object Alfresco "session.getTicket()" "sessionticket.getTicket()"

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?

Upvotes: 0

Views: 396

Answers (1)

Younes Regaieg
Younes Regaieg

Reputation: 4156

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 !

Upvotes: 2

Related Questions