cancel
Showing results for 
Search instead for 
Did you mean: 

How to access a file without logging into Alfresco WebClient

pratyush
Champ in-the-making
Champ in-the-making
I am trying to make some modifications in Alfresco Community Edition 2.1 Web Client project. I am trying to create a functionality where there is a link to every content in the system which will send an email to a non-registered user. The email body will contain a link to that content item. When the link is clicked, the content will open. So the situation is that the user is not registered (hence not logged in) and he/she has to have access to a content (file/static content) through a url.

Is it possible? if yes, how to generate such urls? I found somewhere that it can be achieved through DesktopParams.getTicket() but am unable to implement.

A quick response would highly be appreciated.

Thanks,
Pratyush
http://www.algoworks.com
2 REPLIES 2

pmonks
Star Contributor
Star Contributor
You should be able to use the /api/path/content/ web script to do this.  It uses "guest" authentication, so provided the guest user has permission to read the documents you're linking to in the emails and you call the web script correctly (with "?guest=true"), it should do what you're after.

Cheers,
Peter

pratyush
Champ in-the-making
Champ in-the-making
Peter, thanks for your response.

if I set guest access permission to the content, any guest would be able to access the document/content. I want to create a link (which will have a ticket as a parameter - something like InMemoryTicketComponentImpl.getNewTicket()) so that only that user has access to the content who has the link with a valid ticket (and not all guest user).