cancel
Showing results for 
Search instead for 
Did you mean: 

Logout in Webscript

anand_patel18
Champ in-the-making
Champ in-the-making
Hi,

In the response file of my web script I want to put a hyperlink that displays the current user logged in which is easy but I want to make it so that once the hyperlink is clicked it logs the user out.

I've had a look at DELETE to /api/login/ticket/{ticket}.

But I dont understand how to actually use it. How do I get the persons ticket?

Thanks.
5 REPLIES 5

hsohaib
Champ on-the-rise
Champ on-the-rise
have you tried :

request.getParameter("ticket");

mrogers
Star Contributor
Star Contributor
The ticket will have been returned by the login web script.

guillaumefranco
Champ in-the-making
Champ in-the-making
Hello,

I'm also interested in performing logout through WebScript. How do you achieve this ?

Could you provide a sample ?


My final goal is to get logout functionallty leading back to the login page with a redirect parameter allowing me to get back to a webscript location just after new logon.

kevinr
Star Contributor
Star Contributor
Are you coding for the web-tier or within the Alfresco process?

If you are on the web-tier (Share or a custom SpringSurf application) this may help you:
http://blogs.alfresco.com/wp/kevinr/2010/11/01/springsurf-authenticating-users-against-an-alfresco-r...
It mentions logout at the bottom of the article.

Kev

guillaumefranco
Champ in-the-making
Champ in-the-making
Thanks we finally managed to logout from our side using ajax call and WCService