AnsweredAssumed Answered

Authentication using user and ticket

Question asked by isloat on Mar 21, 2011
Latest reply on Mar 23, 2011 by isloat
Hi,
I'm trying to authenticate with the Alfresco ticket to the repository from an external web app. I'm doing the following:

String SERVER = "http://alfrescoserver:8080/alfresco/api";
WebServiceFactory.setEndpointAddress(SERVER);
//Authentication
AuthenticationDetails authDetails = new AuthenticationDetails(user,ticket, null);
AuthenticationUtils.setAuthenticationDetails(authDetails);

The ticket is valid, because the function "AuthenticationUtils.isCurrentTicketTimedOut()" returns "false".
But it throws this error: The security token could not be authenticated or authorized
I've tried to add the SessionId in the AuthenticationDetails constructor, but the exception remains.

Is any way to authenticate doing this? Or the only chance is using "startSession(USER, PASS);"?

Thanks!

Outcomes