As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
you can get the ticket with help of this webscripthttp://localhost:8080/alfresco/service/api/login?u={username}&pw={password?}and then you can use it for authentication. 😎
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; }