<?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 I'm doing something wrong with cmis basic authenticate using javascript... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/i-m-doing-something-wrong-with-cmis-basic-authenticate-using/m-p/289277#M242407</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;SPAN&gt;I'm trying to get an authentication token against an Alfresco 5 "out of the box" server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using willing to use CMIS Apache Chemistry Parts ( &lt;/SPAN&gt;&lt;A href="https://chemistry.apache.org/javascript/parts.html" rel="nofollow noopener noreferrer"&gt;https://chemistry.apache.org/javascript/parts.html&lt;/A&gt;&lt;SPAN&gt; ) as my client will be a webpage + javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the "index.html" test page found in &lt;/SPAN&gt;&lt;A href="https://svn.apache.org/repos/asf/chemistry/parts/trunk/cmis-js/test/" rel="nofollow noopener noreferrer"&gt;https://svn.apache.org/repos/asf/chemistry/parts/trunk/cmis-js/test/&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://laptopacer:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser" rel="nofollow noopener noreferrer"&gt;http://laptopacer:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser&lt;/A&gt;&lt;SPAN&gt; as a server URL, I get an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;here below is what I wireshark.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched a lot for something obvious, but as a beginner concerning Alfresco and CMIS, nothing is obvious…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NB: I successfully got a token using Java and a POST, but I prefer to make it Javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you see what I'm doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OPTIONS /alfresco/api/-default-/public/cmis/versions/1.1/browser HTTP/1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Host: laptopacer:8080&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Connection: keep-alive&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Access-Control-Request-Method: GET&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Origin: &lt;/SPAN&gt;&lt;A href="http://localhost:63342" rel="nofollow noopener noreferrer"&gt;http://localhost:63342&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Access-Control-Request-Headers: accept, access-control-allow-origin, authorization&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Accept: */*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Referer: &lt;/SPAN&gt;&lt;A href="http://localhost:63342/cmis/test/index.html?testNumber=1" rel="nofollow noopener noreferrer"&gt;http://localhost:63342/cmis/test/index.html?testNumber=1&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Accept-Encoding: gzip, deflate, sdch&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Accept-Language: en-US,en;q=0.8&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTTP/1.1 401 Unauthorized&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server: Apache-Coyote/1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WWW-Authenticate: Basic realm="Alfresco -default- tenant"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cache-Control: no-cache&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Expires: Thu, 01 Jan 1970 00:00:00 GMT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pragma: no-cache&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Content-Type: application/json;charset=UTF-8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transfer-Encoding: chunked&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Date: Sat, 04 Jul 2015 12:24:43 GMT&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;142e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "status" : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 401,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Unauthorized",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "The request requires HTTP authentication."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; },&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "message" : "06040009 Authentication failed for Web Script org\/alfresco\/api\/opencmis\/OpenCMIS.options",&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "exception" : "org.springframework.extensions.webscripts.WebScriptException - 06040009 Authentication failed for Web Script org\/alfresco\/api\/opencmis\/OpenCMIS.options",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[…]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jul 2015 12:58:24 GMT</pubDate>
    <dc:creator>michelgraux</dc:creator>
    <dc:date>2015-07-04T12:58:24Z</dc:date>
    <item>
      <title>I'm doing something wrong with cmis basic authenticate using javascript...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/i-m-doing-something-wrong-with-cmis-basic-authenticate-using/m-p/289277#M242407</link>
      <description>Hello,I'm trying to get an authentication token against an Alfresco 5 "out of the box" server.I'm using willing to use CMIS Apache Chemistry Parts ( https://chemistry.apache.org/javascript/parts.html ) as my client will be a webpage + javascript.Using the "index.html" test page found in https://svn.</description>
      <pubDate>Sat, 04 Jul 2015 12:58:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/i-m-doing-something-wrong-with-cmis-basic-authenticate-using/m-p/289277#M242407</guid>
      <dc:creator>michelgraux</dc:creator>
      <dc:date>2015-07-04T12:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: I'm doing something wrong with cmis basic authenticate using javascript...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/i-m-doing-something-wrong-with-cmis-basic-authenticate-using/m-p/289278#M242408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im having the same problems. When I look at wireshark I get the error 401 Unauthorized. With a possible malformed packet error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions as to what might be the problem? Or corrections on the post above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 02:22:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/i-m-doing-something-wrong-with-cmis-basic-authenticate-using/m-p/289278#M242408</guid>
      <dc:creator>zoidberg88</dc:creator>
      <dc:date>2016-12-13T02:22:41Z</dc:date>
    </item>
  </channel>
</rss>

