AnsweredAssumed Answered

Webdav from a web java project without authentication

Question asked by salguero on Sep 24, 2008
Hi there,
I would like to know how to open the Alfresco console from a web project developed in Java, setting the user and password in java, to avoid inserting user and password.

I have tried to do a startSession with the AuthenticationUtils but I'm getting an error message "Connection refused: connect"

AuthenticationUtils.startSession("admin", "admin");
HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
String url = Utils.generateURL(FacesContext.getCurrentInstance(), node, URLMode.WEBDAV) + "?ticket=" + user.getTicket();

Could anyone help me, please? What am I doing wrong?

Thanks in advance.

Outcomes