<?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: Webscript with guest access requiring authentication in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53425#M19927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correction in above. I just checked and YES the guest user is disabled in the production instance but so in my local. I did a bit of googling and found out that by default the Guest user is disabled in Alfresco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my local I am running the same code as in my production but&amp;nbsp;in my local I am not prompted with the authentication login. If I put username and password as guest/guest in my production I am able successfully authenticate and view the content that the webscript returns. So, I am writing down certain questions please help me in answering them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Does guest need to&amp;nbsp;authenticate by using guest/guest as username/password&amp;nbsp;?&lt;/P&gt;&lt;P&gt;2. I have read the documentation and if the authentication is set to none then the transaction is by default set to none but in my case I do need a readonly transaction ??&lt;/P&gt;&lt;P&gt;3. Also, setting the authentication to none anyone who can form the webscript url can get access to data that the webscript return. How can I avoid it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 10:41:13 GMT</pubDate>
    <dc:creator>hiten_rastogi1</dc:creator>
    <dc:date>2018-04-18T10:41:13Z</dc:date>
    <item>
      <title>Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53423#M19925</link>
      <description>Hi,I have a webscript that have guest access enabled but it still requires me to authenticate when I try to access it on my production instance, though it work fine on my local.Below is the desc file for the webscript&amp;lt;webscript&amp;gt;&amp;nbsp; &amp;nbsp; &amp;lt;shortname&amp;gt;doclist&amp;lt;/shortname&amp;gt;&amp;nbsp; &amp;nbsp; &amp;lt;description&amp;amp;</description>
      <pubDate>Tue, 17 Apr 2018 10:18:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53423#M19925</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2018-04-17T10:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53424#M19926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Maybe you got guest user disabled on production (check all susbsystems that may apply)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, you can also set to&amp;nbsp;none like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;authentication&amp;gt;none&amp;lt;/authentication&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really know what your doing and you need a non authenticated service&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.alfresco.com/5.0/concepts/ws-authenticating.html" title="https://docs.alfresco.com/5.0/concepts/ws-authenticating.html" rel="nofollow noopener noreferrer"&gt;Authenticating web scripts | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:01:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53424#M19926</guid>
      <dc:creator>mikel_asla</dc:creator>
      <dc:date>2018-04-17T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53425#M19927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correction in above. I just checked and YES the guest user is disabled in the production instance but so in my local. I did a bit of googling and found out that by default the Guest user is disabled in Alfresco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my local I am running the same code as in my production but&amp;nbsp;in my local I am not prompted with the authentication login. If I put username and password as guest/guest in my production I am able successfully authenticate and view the content that the webscript returns. So, I am writing down certain questions please help me in answering them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Does guest need to&amp;nbsp;authenticate by using guest/guest as username/password&amp;nbsp;?&lt;/P&gt;&lt;P&gt;2. I have read the documentation and if the authentication is set to none then the transaction is by default set to none but in my case I do need a readonly transaction ??&lt;/P&gt;&lt;P&gt;3. Also, setting the authentication to none anyone who can form the webscript url can get access to data that the webscript return. How can I avoid it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:41:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53425#M19927</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2018-04-18T10:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53426#M19928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe some context of what you're trying to achieve will help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The guest has no authentication behind, it can be seen as the FTP annonimous&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the default value for AlfrescoNtlm auth subsystem (tipically the one you're hitting locally)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;alfresco.authentication.allowGuestLogin=true&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/subsystems/Authentication/alfrescoNtlm/alfresco-authentication.properties#L1" title="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/subsystems/Authentication/alfrescoNtlm/alfresco-authentication.properties#L1" rel="nofollow noopener noreferrer"&gt;alfresco-repository/alfresco-authentication.properties at master · Alfresco/alfresco-repository · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On production this normally differs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It totally depends on your implementation code&lt;/P&gt;&lt;P&gt;3. Creating a ws as guest or none will make it public to the world, why can't you just use "user"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:25:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53426#M19928</guid>
      <dc:creator>mikel_asla</dc:creator>
      <dc:date>2018-04-18T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53427#M19929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mikel for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make a folder and its content in Alfresco accessible to outside world without authentication, for this purpose we have used an &lt;A href="https://github.com/ge0rg0/share-make-public" rel="nofollow noopener noreferrer"&gt;addon&lt;/A&gt; and with some modification created our &lt;A href="https://github.com/ayushiagrahari95/share-link-expiry-file-and-folder" rel="nofollow noopener noreferrer"&gt;own&lt;/A&gt; from it, so none and guest works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The folder has an action that generates a unique URL&amp;nbsp;and gives Consumer access to guest user on all the content inside that folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The unique URL generates a page which displays the all the content inside the folder which is fetched through the webscript. This webscript has guest authentication which as stated above works well on local but not on production and demand authentication on the same code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to figure out the reason for this behaviour. Here is the link to the &lt;A href="https://github.com/ayushiagrahari95/share-link-expiry-file-and-folder" rel="nofollow noopener noreferrer"&gt;project&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:49:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53427#M19929</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2018-04-18T11:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53428#M19930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is something with the order of your authentication chain, what's the value for authentication.chain property on production?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 12:26:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53428#M19930</guid>
      <dc:creator>mikel_asla</dc:creator>
      <dc:date>2018-04-18T12:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53429#M19931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using default authentication on the production as well as local instance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 12:31:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53429#M19931</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2018-04-18T12:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53430#M19932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so only Alfresco internal users and allowGuest enabled&amp;nbsp;on both environments&lt;/P&gt;&lt;P&gt;And do you have any http server / balancer or anything in between?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 12:37:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53430#M19932</guid>
      <dc:creator>mikel_asla</dc:creator>
      <dc:date>2018-04-18T12:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53431#M19933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using an apache web server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 06:22:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53431#M19933</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2018-04-19T06:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53432#M19934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe apache is causing the auth promp&lt;/P&gt;&lt;P&gt;Can you try the service bypassing apache? maybe some curl from the production server console or so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 06:36:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53432#M19934</guid>
      <dc:creator>mikel_asla</dc:creator>
      <dc:date>2018-04-19T06:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53433#M19935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried bypassing the apache by accessing the tomcat directly but to no avail. I was still prompted for authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other that I can try ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 08:04:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53433#M19935</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2018-04-19T08:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53434#M19936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to tell.... If you got same code, same Alfresco version, same auth configuration and nothing in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about tomcat configuration?&amp;nbsp;you could inpect&amp;nbsp;both server.xml files to see if you got a valve or something causing your trouble.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 10:41:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53434#M19936</guid>
      <dc:creator>mikel_asla</dc:creator>
      <dc:date>2018-04-19T10:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript with guest access requiring authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53435#M19937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some testing and it wasn't pretty clear as to why this is happening as on some instances that are behind the same apache server. I also checked the Valve in &amp;lt;TOMCAT_HOME&amp;gt;/conf/server.xml and didn't find any custom changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I have to change the authentication&amp;nbsp;in the webscript desc.xml file that fetches the list of children of a folder from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #000000;"&gt;&amp;lt;authentication&amp;gt;guest&amp;lt;/authentication&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; : ; color: #000000;"&gt;&amp;lt;authentication user=guest&amp;gt;none&amp;lt;/authentication&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;and now it is working correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 09:32:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-with-guest-access-requiring-authentication/m-p/53435#M19937</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2018-05-10T09:32:45Z</dc:date>
    </item>
  </channel>
</rss>

