<?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 / API services authentication in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213335#M166465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The argument is called "ticket" and it should work. Note a webdav path should begin /webdav/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you put this in log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.webdav.auth=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should see a DEBUG message in alfresco.log saying "Logon via ticket from …"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using a different authentication chain or custom authentication filters?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Mar 2010 12:17:35 GMT</pubDate>
    <dc:creator>dward</dc:creator>
    <dc:date>2010-03-02T12:17:35Z</dc:date>
    <item>
      <title>Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213328#M166458</link>
      <description>Hey all-I'm having difficulties getting an authenticated web script to use those credentials when I call the download service from within the webscript…Basically I've created a custom search/browse web-script for our documents and I am using ${url.context}/download/attach/workspace/SpacesStore/${res</description>
      <pubDate>Mon, 12 Oct 2009 22:32:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213328#M166458</guid>
      <dc:creator>tonyc</dc:creator>
      <dc:date>2009-10-12T22:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213329#M166459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried appending the ticket?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 06:33:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213329#M166459</guid>
      <dc:creator>lista</dc:creator>
      <dc:date>2009-10-13T06:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213330#M166460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No I have not.&amp;nbsp; I feel that the process of fetching a ticket, parsing it, then appending to a URL is unnecessary.&amp;nbsp; Login credentials were already established and I'm sure there's got to be a way to authenticate with those.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 19:12:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213330#M166460</guid>
      <dc:creator>tonyc</dc:creator>
      <dc:date>2009-10-13T19:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213331#M166461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a ticket already established once you have authenticated the web-script that I could then append to the request..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 14:17:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213331#M166461</guid>
      <dc:creator>tonyc</dc:creator>
      <dc:date>2009-10-14T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213332#M166462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you authenticate using the Login or Login (POST) web scripts a ticket is returned, that could then be appended to your other requests.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 17:20:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213332#M166462</guid>
      <dc:creator>gronfelt</dc:creator>
      <dc:date>2009-10-14T17:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213333#M166463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you.. I was unaware that a ticket was already created under the session root object.&amp;nbsp; I swear I checked my JavaScript API wiki&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 19:04:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213333#M166463</guid>
      <dc:creator>tonyc</dc:creator>
      <dc:date>2009-10-14T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213334#M166464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The web script I am developing generates a list of document from which the user selects one to open using MS Office via webdav (IE 8 - XP SP3).&amp;nbsp; The web script uses basic authentication - Windows presents a login screen before generating the list of documents.&amp;nbsp; In the web script Javascript controller after basic authentication I getTicket() and then use that ticket later to form the webdav url when the user selects a specific document; can the ticket I retrieved in the initial web script be used to authenticate the webdav call or any other subsequent servlet call? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still being prompted to login when the user selects the document from the list.&amp;nbsp; I am not sure if this ticket is invalid or I have some other problem.&amp;nbsp; I've tried using ?ticket= and ?alf_ticket= with the same result.&amp;nbsp; Must I use either the login web script or webservice to get a valid ticket? As a quick test, I invoked the Login webscript from the browser and generated a ticket and then hard coded that on the webdav url call.&amp;nbsp; It still prompts me to login.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following link indicates that XP SP3 webdav driver has authentication issues.&amp;nbsp; I tried the registry change described by MS but this didn't solve the problem.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://greenbytes.de/tech/webdav/webdav-redirector-list.html#issue-no-basic-auth" rel="nofollow noopener noreferrer"&gt;http://greenbytes.de/tech/webdav/webdav-redirector-list.html#issue-no-basic-auth&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 20:26:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213334#M166464</guid>
      <dc:creator>stevegreenbaum</dc:creator>
      <dc:date>2010-03-01T20:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213335#M166465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The argument is called "ticket" and it should work. Note a webdav path should begin /webdav/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you put this in log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.alfresco.repo.webdav.auth=debug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should see a DEBUG message in alfresco.log saying "Logon via ticket from …"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using a different authentication chain or custom authentication filters?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 12:17:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213335#M166465</guid>
      <dc:creator>dward</dc:creator>
      <dc:date>2010-03-02T12:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript / API services authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213336#M166466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using a different authentication chain or custom authentication filters?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; No, I have not implemented chaining or authentication filters. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Webdav:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I turned on the logging as you suggested, but do not find a “login via ticket” message in the log.&amp;nbsp; The log output is at the bottom of this post and shows no ticket related messages. Here is the url I am using when opening an Office document for editing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//localhost:8080/alfresco/webdav/User Homes/sgreenbaum/Test document 3.docx?ticket=TICKET_69a49e51c5cb140f53860581c0ce8ec94829c92d&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Office documents I am opening need to be opened with editing enabled (not read-only).&amp;nbsp; To open the document for editing I am using the same technique as used by the Alfresco client when Edit Online is selected (using webdav.js).&amp;nbsp; The first time I open an Office document I am prompted to log in, subsequent files open without logging in again.&amp;nbsp; However, if a non-Office document is opened in between, the system prompts for the login again the next time I open an Office document.&amp;nbsp; I suspect that the Sharepoint.Open command is interfering with the ticket.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also note that using this technique, I always receive the “Some files can harm your computer….” message which I have not be able to find a method to suppress (I’ve tried published workarounds, but with no success).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Non-webdav:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For non-webdav links to the repository, the ticket is working fine and I am not prompted to log in again.&amp;nbsp; For example, &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/d/d/workspace/SpacesStore/fa72ed65-295b-4a98-aa0d-26bc948b21e3/Test%20Workflow%20Model.xls?ticket=TICKET_f9ca963ea01682387ef31c3ea4ec8761c2f6b1a2" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/d/d/workspace/SpacesStore/fa72ed65-295b-4a98-aa0d-26bc948b21e3/Test%20Workflow%20Model.xls?ticket=TICKET_f9ca963ea01682387ef31c3ea4ec8761c2f6b1a2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the log output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,515 DEBUG [org.alfresco.webdav.protocol] WebDAV request HEAD on path /alfresco/webdav/User%20Homes/sgreenbaum/Test%20document%203.docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,546 DEBUG [org.alfresco.webdav.protocol] HEAD took 31ms to execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,562 DEBUG [org.alfresco.webdav.protocol] WebDAV request HEAD on path /alfresco/webdav/User%20Homes/sgreenbaum/Test%20document%203.docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,593 DEBUG [org.alfresco.webdav.protocol] HEAD took 31ms to execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,640 DEBUG [org.alfresco.webdav.protocol] WebDAV request LOCK on path /alfresco/webdav/User%20Homes/sgreenbaum/Test%20document%203.docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,640 DEBUG [org.alfresco.webdav.protocol] Parsing If header: null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,640 DEBUG [org.alfresco.webdav.protocol] Lock lockToken=null, timeout=180&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,640 DEBUG [org.alfresco.webdav.protocol] Locking node: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; user: admin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; path: /User Homes/sgreenbaum/Test document 3.docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,640 DEBUG [org.alfresco.webdav.protocol] Create lock status=NO_LOCK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,734 DEBUG [org.alfresco.webdav.protocol] LOCK took 94ms to execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,750 DEBUG [org.alfresco.webdav.protocol] WebDAV request GET on path /alfresco/webdav/User%20Homes/sgreenbaum/Test%20document%203.docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,750 DEBUG [org.alfresco.webdav.protocol] GET took 0ms to execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,765 DEBUG [org.alfresco.webdav.protocol] WebDAV request HEAD on path /alfresco/webdav/User%20Homes/sgreenbaum/Test%20document%203.docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,765 DEBUG [org.alfresco.webdav.protocol] HEAD took 0ms to execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,796 DEBUG [org.alfresco.webdav.protocol] WebDAV request PROPFIND on path /alfresco/webdav/User%20Homes/sgreenbaum/Test%20document%203.docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,812 DEBUG [org.alfresco.webdav.protocol] PROPFIND took 16ms to execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,921 DEBUG [org.alfresco.webdav.protocol] WebDAV request PROPFIND on path /alfresco/webdav/User%20Homes/sgreenbaum/Test%20document%203.docx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:10:16,937 DEBUG [org.alfresco.webdav.protocol] PROPFIND took 16ms to execute&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 16:17:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api-services-authentication/m-p/213336#M166466</guid>
      <dc:creator>stevegreenbaum</dc:creator>
      <dc:date>2010-03-02T16:17:05Z</dc:date>
    </item>
  </channel>
</rss>

