cancel
Showing results for 
Search instead for 
Did you mean: 

Login from web service

agey
Champ in-the-making
Champ in-the-making
Hi all,

I have a question. I am developing a java application to use as a frontend for Alfresco. The users can register themselfs and change their passwords in any time. The users have to be authenticated in this application to access to contents. A link redirect the user to Alfresco application that it´s installed in another server. I want the user doesn´t have to authenticate again. Any ideas to do this?

I am trying authenticate the user by webservice when the user access to the first application and then send the valid ticket to Alfresco when the user is redirected to it. Is it posible?

Thanks a lot in advance,
2 REPLIES 2

hsohaib
Champ on-the-rise
Champ on-the-rise
sure, just post the ticket along with the request to alfresco.
example "http://yourserver:8080/alfresco/services/someservice?ticket=yourticket"
and the user won't have to re-authenticate.

agey
Champ in-the-making
Champ in-the-making
Hi hsohaib, thank you very much for your reply.

I tried to rediret the user at "http://yourserver:8080/alfresco/services/someservice?ticket=yourticket" but it returned an error.

I want users to enter into Alfresco in companyhome space so I redirect them using this url:
http://yourserver:8080/alfresco/n/browse/workspace/SpacesStore/nodeRefCompanyHome?ticket=myticket&se...".

It works fine. Users are authenticated when the application redirect them to Alfresco and they can work with Alfresco as if they enter from Alfresco login page.