<?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 Webscript Authentication in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/247706#M200836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I developed a Java-backed webscript referenced by a third-party viewer. The webscript takes a filepath as the parameter and what it does is pull the file specified in the parameter, stamps an image watermark on the file, and returns the modified stream back to the viewer. I currently set the authentication to "auth" but the problem is, the viewer (a Java applet) prompts me for the userid and password (HTTP Basic Auth). I tried changing authentication to "none" but I get an error message saying that I was not authenticated. (The behavior actually makes sense).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I get around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only option I could think of is Authenticate from within the Java code – the problem with this is the approach opens up a security risk because users can just do a "view source" on the view page and see the parameters I pass to the script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 14:00:29 GMT</pubDate>
    <dc:creator>jett</dc:creator>
    <dc:date>2012-03-23T14:00:29Z</dc:date>
    <item>
      <title>Webscript Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/247706#M200836</link>
      <description>I developed a Java-backed webscript referenced by a third-party viewer. The webscript takes a filepath as the parameter and what it does is pull the file specified in the parameter, stamps an image watermark on the file, and returns the modified stream back to the viewer. I currently set the authent</description>
      <pubDate>Fri, 23 Mar 2012 14:00:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/247706#M200836</guid>
      <dc:creator>jett</dc:creator>
      <dc:date>2012-03-23T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/247707#M200837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might want to have a look at the runas property then.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Freferences%2Fapi-ws-runas.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Freferences%2Fapi-ws-runas.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I've never used it myself but my understanding of it is that you could have a webscript without authentication to run with admin rights.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But then you need to be very careful not to let any injection hole in your code because it would execute with admin rights.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 15:24:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/247707#M200837</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2012-03-23T15:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/247708#M200838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. Will give it a shot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 08:21:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/247708#M200838</guid>
      <dc:creator>jett</dc:creator>
      <dc:date>2012-03-27T08:21:50Z</dc:date>
    </item>
  </channel>
</rss>

