cancel
Showing results for 
Search instead for 
Did you mean: 

Get ALF_TICKET without password?

khanh
Champ in-the-making
Champ in-the-making
Hi,
is there a way to get the current user, ALF_TICKET without calling the /wcservice/api/login?u=username&password ?

I want to write some jsp code on the same  server that's running alfresco,
and would like to get a ticket from the user that is logged in.

Basically,
i'm writing a jsp page to do some RESTFul service calls and need an ALF_TICKET.
What's the best way to do that?
The user would already be logged in.
1 REPLY 1

jpfi
Champ in-the-making
Champ in-the-making
Hi,
the best way is to implment a custom web script (may be there is already one…):
xxx.get.js:
model.currentTicket = session.getTicket()
xxx.get.json.ftl
{"ticket": "${currentTicket}"}

Cheers, jan
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.