Added session id to the result of authentication call. Updated Java web service client to pass session id on cookieif present in authentication details.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5075 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2007-02-08 11:05:21 +00:00
parent 7e64c93d6b
commit 05927316da
5 changed files with 67 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ package org.alfresco.repo.webservice.authentication;
import java.rmi.RemoteException;
import org.alfresco.repo.security.authentication.AuthenticationException;
import org.alfresco.repo.webservice.Utils;
import org.alfresco.service.cmr.security.AuthenticationService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -63,8 +64,8 @@ public class AuthenticationWebService implements AuthenticationServiceSoapPort
{
logger.debug("Issued ticket '" + ticket + "' for '" + username + "'");
}
return new AuthenticationResult(username, ticket);
return new AuthenticationResult(username, ticket, Utils.getSessionId());
}
catch (AuthenticationException ae)
{