cancel
Showing results for 
Search instead for 
Did you mean: 

Direct link to Documents

zoao
Champ in-the-making
Champ in-the-making
In DocumentLibrary its show links for direct access and download to document, but this link request login, even when I'm logged.
I see that the link is like this:
http://.../share/proxy/alfresco-feed/api/node/content/workspace/SpacesStore/f2d47765-90da-454c-85ef-e8db045c1c3d/Blue%20hills.jpg

if i change alfresco-feed to alfresco:
http://.../share/proxy/alfresco/api/node/content/workspace/SpacesStore/f2d47765-90da-454c-85ef-e8db045c1c3d/Blue%20hills.jpg

no longer asks login. However if you have not logged in it show a error.

What I need is a url that combined the two, which is when I have not done the login asks me, when I have logged not ask more.

This is possible?
2 REPLIES 2

tonyc
Champ in-the-making
Champ in-the-making
Append a ticket to the URL…

?ticket=${session.ticket}

zoao
Champ in-the-making
Champ in-the-making
I do not think that append session ticket is a solution for this problem.
Because what I want is that the links that appear in the details of documentlibrary, can be used for example in the blog or forum, or when I get one of these links via email, when I open if I are already logged in Alfresco not have to do login again.

The solution I found was, to change these links from "Alfresco-feed" to "Alfresco", as discussed in first post and put the option of basic authentication in proxyServelet, file" web.xml ":

<init-param>
          <param-name> authenticator </ param-name>
          <param-value> webscripts.authenticator.delegatingbasic </ param-value>
</ init-param>

This seems to work well, when user is authenticated show the file, if user is not authenticated show basic authentication, but I would like to know if someone with more experience can give your opinion, especially in cases where there are other forms of authentication: ldap, etc. ..

If this solution look correct, I can open a ticket in Jira, what you thing?