<?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: How can I allow Authorization - Bearer token in alfresco rest requests? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90365#M26975</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Instaed Bearer you should use the alf_ticket param in your curl call. First thing you do is call the login web script to get a ticket.&lt;/P&gt;&lt;PRE&gt;curl -v "http://localhost:8080/alfresco/service/api/login?u=admin&amp;amp;pw=yourpassword"&lt;/PRE&gt;&lt;P&gt;Alfresco will respond with something like:&lt;/P&gt;&lt;PRE&gt;TICKET_e46107058fdd2760441b44481a22e7498e7ddfsf&lt;/PRE&gt;&lt;P&gt;Now you can take that ticket and append it to your subsequent web script calls.&lt;/P&gt;&lt;P&gt;Then post it to the web script using curl, like this:&lt;/P&gt;&lt;PRE&gt;curl -v -X POST "http://localhost:8080/alfresco/service/someco/someScript?alf_ticket=TICKET_e46107058fdd2760441b44481a22e7498e7dbf66" -H "Content-Type: application/json" -d @/Users/arjunm/test.json&lt;/PRE&gt;</description>
    <pubDate>Wed, 28 Apr 2021 20:02:49 GMT</pubDate>
    <dc:creator>arjunmony</dc:creator>
    <dc:date>2021-04-28T20:02:49Z</dc:date>
    <item>
      <title>How can I allow Authorization - Bearer token in alfresco rest requests?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90361#M26971</link>
      <description>It's possible to allow Authorization Bearer token in alfresco requests? how can I do that?When I try to reach any endpoint, ex: curl --header "Authorization: Bearer xxx.xxxx" http://localhost/alfresco/s/... I get this error:"status" : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"code" : 401,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "name" : "Unautho</description>
      <pubDate>Mon, 17 Jun 2019 13:32:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90361#M26971</guid>
      <dc:creator>fastdev</dc:creator>
      <dc:date>2019-06-17T13:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I allow Authorization - Bearer token in alfresco rest requests?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90362#M26972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;T Dias&lt;/B&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To me this means your clients requests land on the alfresco servlet container with an HTTP "Authorization" header of type "Bearer".&lt;/P&gt;&lt;P&gt;This type is not recognized by Alfresco out-of-the-box, hence the message.&lt;/P&gt;&lt;P&gt;You may have this authentication type set either by your client or by a reverse proxy in between?&lt;/P&gt;&lt;P&gt;Maybe can you clarify how you installed Alfresco and how is it integrated with other services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 08:28:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90362#M26972</guid>
      <dc:creator>alxgomz</dc:creator>
      <dc:date>2019-06-19T08:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I allow Authorization - Bearer token in alfresco rest requests?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90363#M26973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;Alexandre Chapellon&lt;/B&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;found that you added a topic about "&lt;SPAN&gt;Collaborative Edition on Alfresco using LibreOffice Online", that is more or less what I'm trying to accomplish.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem that I&amp;nbsp;found is that libreoffice add an Authorization header of type bearer in the request send to alfresco.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My environment:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;dockerized alfresco without alfresco share&lt;/LI&gt;&lt;LI&gt;libreoffice module installed in alfresco&lt;/LI&gt;&lt;LI&gt;alfresco&amp;nbsp;in multi-tenant environment&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any idea about this?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 10:55:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90363#M26973</guid>
      <dc:creator>fastdev</dc:creator>
      <dc:date>2019-06-27T10:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I allow Authorization - Bearer token in alfresco rest requests?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90364#M26974</link>
      <description>&lt;P&gt;Have you found a solution?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 09:04:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90364#M26974</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2021-04-28T09:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I allow Authorization - Bearer token in alfresco rest requests?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90365#M26975</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Instaed Bearer you should use the alf_ticket param in your curl call. First thing you do is call the login web script to get a ticket.&lt;/P&gt;&lt;PRE&gt;curl -v "http://localhost:8080/alfresco/service/api/login?u=admin&amp;amp;pw=yourpassword"&lt;/PRE&gt;&lt;P&gt;Alfresco will respond with something like:&lt;/P&gt;&lt;PRE&gt;TICKET_e46107058fdd2760441b44481a22e7498e7ddfsf&lt;/PRE&gt;&lt;P&gt;Now you can take that ticket and append it to your subsequent web script calls.&lt;/P&gt;&lt;P&gt;Then post it to the web script using curl, like this:&lt;/P&gt;&lt;PRE&gt;curl -v -X POST "http://localhost:8080/alfresco/service/someco/someScript?alf_ticket=TICKET_e46107058fdd2760441b44481a22e7498e7dbf66" -H "Content-Type: application/json" -d @/Users/arjunm/test.json&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Apr 2021 20:02:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-allow-authorization-bearer-token-in-alfresco-rest/m-p/90365#M26975</guid>
      <dc:creator>arjunmony</dc:creator>
      <dc:date>2021-04-28T20:02:49Z</dc:date>
    </item>
  </channel>
</rss>

