<?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 Authentication in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/171161#M124426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It all depends on what it is that's calling the Web Script (a browser vs an external application).&amp;nbsp; For the UI Web Scripts you mention however, I'm assuming that it's a browser that's calling the Web Scripts, in which case there's no easy way to force the browser to pre-authenticate - browsers do their thing their way, and there's little that application developers can do to modify that behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, it is possible to get single-sign-on across both the Alfresco web client and Web Scripts - to do this you simply access the Web Scripts via /alfresco/wcservice rather than /alfresco/service.&amp;nbsp; Of course this still requires the user to login once to start their session, but after that they won't need to log in again to either the web client or any Web Scripts they access (until such time as they logout or their session times out of course!).&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If, on the other hand, it's an external application that's calling the Web Scripts then you should access Web Scripts via /alfresco/service and use pre-emptive authentication - the /alfresco/service access path uses HTTP basic authentication (&lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Basic_access_authentication" rel="nofollow noopener noreferrer"&gt;http://en.wikipedia.org/wiki/Basic_access_authentication&lt;/A&gt;&lt;SPAN&gt;) which allows for login credentials to be provided pre-emptively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Feb 2008 17:45:48 GMT</pubDate>
    <dc:creator>pmonks</dc:creator>
    <dc:date>2008-02-29T17:45:48Z</dc:date>
    <item>
      <title>Webscript Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/171160#M124425</link>
      <description>Dear friends,Is there a way to send alfresco login credentials by default to&amp;nbsp; the existing sample webscripts provided with alfresco(MySpaces, My Documents etc..)Shoshin</description>
      <pubDate>Fri, 29 Feb 2008 06:05:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/171160#M124425</guid>
      <dc:creator>shoshin</dc:creator>
      <dc:date>2008-02-29T06:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/171161#M124426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It all depends on what it is that's calling the Web Script (a browser vs an external application).&amp;nbsp; For the UI Web Scripts you mention however, I'm assuming that it's a browser that's calling the Web Scripts, in which case there's no easy way to force the browser to pre-authenticate - browsers do their thing their way, and there's little that application developers can do to modify that behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, it is possible to get single-sign-on across both the Alfresco web client and Web Scripts - to do this you simply access the Web Scripts via /alfresco/wcservice rather than /alfresco/service.&amp;nbsp; Of course this still requires the user to login once to start their session, but after that they won't need to log in again to either the web client or any Web Scripts they access (until such time as they logout or their session times out of course!).&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If, on the other hand, it's an external application that's calling the Web Scripts then you should access Web Scripts via /alfresco/service and use pre-emptive authentication - the /alfresco/service access path uses HTTP basic authentication (&lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Basic_access_authentication" rel="nofollow noopener noreferrer"&gt;http://en.wikipedia.org/wiki/Basic_access_authentication&lt;/A&gt;&lt;SPAN&gt;) which allows for login credentials to be provided pre-emptively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 17:45:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-authentication/m-p/171161#M124426</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-02-29T17:45:48Z</dc:date>
    </item>
  </channel>
</rss>

