<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access share Download URL from external Application ??? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/access-share-download-url-from-external-application/m-p/266593#M219723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From what I know, you could try accessing the download content directly? Something like /alfresco/api/node/${nodeRef?replace('://','/')}/content". Then make a copy of such webscript to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make a copy of that webscript, make it runas="admin" so that you can access any content regardless of privileges, and DON'T make it a guest webscript (or else everybody could access it and the whole repository).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now have your Java app make an auth first with your application to get the login ticket, and then use this copy of the access webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, do this on the Share side: make your Java app call "/share/page/dologin" POST call, with the username=$username, password=$password, success=$yourContentLink, failure=$failureLink as the POST payload. This will authenticate your application (you get the session and all) but it will not give you a ticket back - it will redirect you to the link you put in $yourContentLink. (which could be the share download link).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is off the top of my head. Probably not a good way though, wait for somebody smarter to answer &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2013 10:13:09 GMT</pubDate>
    <dc:creator>zladuric</dc:creator>
    <dc:date>2013-01-16T10:13:09Z</dc:date>
    <item>
      <title>Access share Download URL from external Application ???</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-share-download-url-from-external-application/m-p/266592#M219722</link>
      <description>Hi Folks,There is document download URL available in Share which allows you to download document directly if you are authenticated/logged in user.I have requirement in which external JAVA application wants to download a document from outside. Now this share download URL is not a webscript so that I</description>
      <pubDate>Sat, 12 Jan 2013 18:41:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-share-download-url-from-external-application/m-p/266592#M219722</guid>
      <dc:creator>nirvanvjain</dc:creator>
      <dc:date>2013-01-12T18:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access share Download URL from external Application ???</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-share-download-url-from-external-application/m-p/266593#M219723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From what I know, you could try accessing the download content directly? Something like /alfresco/api/node/${nodeRef?replace('://','/')}/content". Then make a copy of such webscript to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make a copy of that webscript, make it runas="admin" so that you can access any content regardless of privileges, and DON'T make it a guest webscript (or else everybody could access it and the whole repository).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now have your Java app make an auth first with your application to get the login ticket, and then use this copy of the access webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, do this on the Share side: make your Java app call "/share/page/dologin" POST call, with the username=$username, password=$password, success=$yourContentLink, failure=$failureLink as the POST payload. This will authenticate your application (you get the session and all) but it will not give you a ticket back - it will redirect you to the link you put in $yourContentLink. (which could be the share download link).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is off the top of my head. Probably not a good way though, wait for somebody smarter to answer &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 10:13:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-share-download-url-from-external-application/m-p/266593#M219723</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-01-16T10:13:09Z</dc:date>
    </item>
  </channel>
</rss>

