cancel
Showing results for 
Search instead for 
Did you mean: 

Access download links service without logging in

sisao
Champ in-the-making
Champ in-the-making
Hi,

i'm actually tuning an application that is using alfresco as a document repository….doing all the import/delete/create/authenticate job via WS API.
After populating a jsp page with the content stored into an alfresco folder i'd like to be able to download the relative document WITHOUT having to login the webclient.

I'm using the path :
http://hostnameSmiley Tongueort/alfresco/d/a/workspace/SpacesStore/uuid/filename
in order to build up my hrefs, and i refresh the session ticket even while populating the jsp with the WS method startSession(username, userpass)…..

This seems not to be the right auth needed by the repository in order to let it validate those links, and not ask for a client login when a user clicks on those.
Any idea on how can i solve this problem?

Regards.
2 REPLIES 2

zaizi
Champ in-the-making
Champ in-the-making
You can use the guest download servlet. More details at http://wiki.alfresco.com/wiki/URL_Addressability#GuestDownloadContentServlet

sisao
Champ in-the-making
Champ in-the-making
Thx for the tip….i'm anyway not willing to use that solution beacuse the folders where the documents are stored are not accessible by the guest user. I'm going the way of adding a ?ticket= to authenticate the download….let's see if i can work it out  Smiley Very Happy

Thx!