<?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: folder share URL is asking for authentication in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51102#M19463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you are calling a repo-tier web script from client-side JavaScript. Is that what you intend? When everything (the browser and the server) is on the same machine, that might work okay, but as soon as your client and server are on different machines, you will run into trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of calling a repo-tier web script from client-side JavaScript, consider calling the Share proxy web script instead. In this case your client-side JavaScript would invoke /share/proxy/alfresco/eu/xfel/make-public/doclist?nodeRef...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another advantage of doing that is that Share will handle repo authentication for you and you won't have to fool with Guest access.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 03:33:44 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2018-04-26T03:33:44Z</dc:date>
    <item>
      <title>folder share URL is asking for authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51097#M19458</link>
      <description>Hi all,I have made a project for sharing the contents of file and folder in alfrecso.The github link for my project isGitHub - ayushiagrahari95/share-link-expiry-file-and-folder and it is working fine on local but when I have deployed the amps on production,whenever I click on the make public action</description>
      <pubDate>Mon, 16 Apr 2018 08:41:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51097#M19458</guid>
      <dc:creator>ayushi_agrahari</dc:creator>
      <dc:date>2018-04-16T08:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: folder share URL is asking for authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51098#M19459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's cool you made that code available on github, but maybe grab the section you think might be the problem and post it here so people don't have to go hunt for it. For example, what URL are you generating for the folder?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:45:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51098#M19459</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-04-16T15:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: folder share URL is asking for authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51099#M19460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to call the repo webscript from share side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The space-list.js file in share-link-expiry-file-and-folder/Ev-share-make-public-share/src/main/resources/META-INF/components/make-public is calling the repo webscript in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt;&lt;SPAN class="" style="color: #d73a49;"&gt;var&lt;/SPAN&gt; requestUrl &lt;SPAN class="" style="color: #d73a49;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #005cc5;"&gt;window&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #005cc5;"&gt;location&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #005cc5;"&gt;protocol&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="" style="color: #032f62;"&gt;"//"&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="" style="color: #005cc5;"&gt;window&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #005cc5;"&gt;location&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #005cc5;"&gt;host&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="" style="color: #032f62;"&gt;"/alfresco/s/eu/xfel/make-public/doclist?nodeRef="&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="" style="color: #005cc5;"&gt;this&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #005cc5;"&gt;options&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #24292e;"&gt;nodeRef&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="" style="color: #032f62;"&gt;"&amp;amp;guest=true"&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt;The doclist repo webscript is a webscript that has guest authentication but on calling this webscript on prod,the url that is generated is asking for authentication and is able to call the repo side webscript only after authentication.&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt;I am not able to figure out why it is asking for authentication in prod and not in local&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt;Any help would be greatly appreciated.&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt;Thanks&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px 15px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 03:49:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51099#M19460</guid>
      <dc:creator>ayushi_agrahari</dc:creator>
      <dc:date>2018-04-17T03:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: folder share URL is asking for authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51100#M19461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you add the GUEST user with Consumer access (or higher) to the node?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 18:00:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51100#M19461</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-04-23T18:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: folder share URL is asking for authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51101#M19462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,I have added the guest access with consumer access to the node in the local as well as production but as I have already told u that the amps of project is working perfectly on local but the issue is actually when I deploy the amps on production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why it is asking for authentication on production but not on local&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:38:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51101#M19462</guid>
      <dc:creator>ayushi_agrahari</dc:creator>
      <dc:date>2018-04-24T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: folder share URL is asking for authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51102#M19463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you are calling a repo-tier web script from client-side JavaScript. Is that what you intend? When everything (the browser and the server) is on the same machine, that might work okay, but as soon as your client and server are on different machines, you will run into trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of calling a repo-tier web script from client-side JavaScript, consider calling the Share proxy web script instead. In this case your client-side JavaScript would invoke /share/proxy/alfresco/eu/xfel/make-public/doclist?nodeRef...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another advantage of doing that is that Share will handle repo authentication for you and you won't have to fool with Guest access.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 03:33:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51102#M19463</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-04-26T03:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: folder share URL is asking for authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51103#M19464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried ur solution and instead of calling the repo side webscript from client side javascript,I am calling the share proxy webscript in the following way.&lt;/P&gt;&lt;P&gt;var requestUrl =&amp;nbsp; "/share/proxy/alfresco/eu/xfel/make-public/doclist?nodeRef="+ this.options.nodeRef;&lt;/P&gt;&lt;P&gt;it is working without authentication on production,but now the another problem is that when I tried to open the same URL in other browser,the page is not loading.I can't figure out why this is so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but calling the repo side webscript from client side javascript by&lt;/P&gt;&lt;P&gt;var requestUrl =&amp;nbsp; window.location.protocol + "//" + window.location.host + "/alfresco/s/eu/xfel/make-public/doclist?nodeRef=" + this.options.nodeRef + "&amp;amp;guest=true";&lt;/P&gt;&lt;P&gt;is working for other browsers also but is asking for authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why this is so.....&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ayushi Agrahari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2018 08:35:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51103#M19464</guid>
      <dc:creator>ayushi_agrahari</dc:creator>
      <dc:date>2018-05-05T08:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: folder share URL is asking for authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51104#M19465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing googling,I have changed the authentication in the webscript xml descriptor in the following way.In doclist.get.desc.xml,I have changed&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffeef0;"&gt;&amp;lt;authentication&amp;gt;guest&amp;lt;/authentication&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffeef0;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffeef0;"&gt;&lt;SPAN&gt;&amp;lt;authentication runas="guest"&amp;gt;none&amp;lt;/authentication&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now it is working perfectly and is no longer asking for authentication while calling the webscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ayushi Agrahari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 09:25:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-share-url-is-asking-for-authentication/m-p/51104#M19465</guid>
      <dc:creator>ayushi_agrahari</dc:creator>
      <dc:date>2018-05-09T09:25:57Z</dc:date>
    </item>
  </channel>
</rss>

