05-29-2012 02:05 AM
05-29-2012 07:53 AM
05-29-2012 08:48 AM
you can get the ticket with help of this webscript
http://localhost:8080/alfresco/service/api/login?u={username}&pw={password?}
and then you can use it for authentication. 😎
05-30-2012 02:35 AM
05-30-2012 03:12 AM
05-31-2012 02:04 AM
protected Map<String, Object> executeImpl(WebScriptRequest request,
WebScriptStatus status) {
Map<String, Object> model = new HashMap<String, Object>(1);
WebScriptServletRequest req = (WebScriptServletRequest) request;
HttpServletRequest sReq = req.getHttpServletRequest();
HttpSession session = sReq.getSession();
String userId = (String)session.getAttribute(UserFactory.SESSION_ATTRIBUTE_KEY_USER_ID);
String ticket = "";
try {
Connector connector = connectorService.getConnector(AlfrescoUserFactory.ALFRESCO_ENDPOINT_ID, userId, session);
ticket = connector.getConnectorSession().getParameter(AlfrescoAuthenticator.CS_PARAM_ALF_TICKET);
} catch (ConnectorServiceException e) {
throw new RuntimeException(e);
}
model.put("ticket", ticket);
return model;
}
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.