<?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 ı get token for alfresko authorization in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-get-token-for-alfresco-authorization/m-p/5321#M2627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In postman: (note that I am using Alfresco CE 201702, but this should work back to 5.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the URL to&amp;nbsp;http(s)://host&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco/api/-default-/public/authentication/versions/1/tickets&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leave the Authorization tab blank&lt;/P&gt;&lt;P&gt;In the 'Body' tab, change the data type to 'raw' and select JSON (application/json) from the dropdown&lt;/P&gt;&lt;P&gt;In the body enter:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "userId": "yourusernamehere",&lt;BR /&gt; "password": "passwordinplaintext"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hit send..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should note that I am not using the tickets feature in my REST API calls. I am adding basic auth headers to all requests. If you want to go that route just enter your username/password in the Authorization table and click Update Request. That will add a new header to the HTTP request containing your username/password. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, the API-explorer add-on is wonderful. I deployed it on my test server and you can try out all the REST APIs without having to use Postman.&amp;nbsp;You have to build it yourself, but it is IMHO worth the time to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/rest-api-explorer" title="https://github.com/Alfresco/rest-api-explorer" rel="nofollow noopener noreferrer"&gt;GitHub - Alfresco/rest-api-explorer: Public REST API Explorer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 14:55:53 GMT</pubDate>
    <dc:creator>edcearl</dc:creator>
    <dc:date>2017-03-09T14:55:53Z</dc:date>
    <item>
      <title>How can I get token for alfresco authorization</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-get-token-for-alfresco-authorization/m-p/5320#M2626</link>
      <description>I use community edition and ı want to try alfresco rest api on postman. But ı get 401 unauthorize message while trying rest api. I think, it wants a token . But &amp;nbsp;ı dont know how can ı token locally. Thanks.</description>
      <pubDate>Thu, 09 Mar 2017 10:46:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-get-token-for-alfresco-authorization/m-p/5320#M2626</guid>
      <dc:creator>hilal</dc:creator>
      <dc:date>2017-03-09T10:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can ı get token for alfresko authorization</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-get-token-for-alfresco-authorization/m-p/5321#M2627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In postman: (note that I am using Alfresco CE 201702, but this should work back to 5.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the URL to&amp;nbsp;http(s)://host&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco/api/-default-/public/authentication/versions/1/tickets&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leave the Authorization tab blank&lt;/P&gt;&lt;P&gt;In the 'Body' tab, change the data type to 'raw' and select JSON (application/json) from the dropdown&lt;/P&gt;&lt;P&gt;In the body enter:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "userId": "yourusernamehere",&lt;BR /&gt; "password": "passwordinplaintext"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hit send..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should note that I am not using the tickets feature in my REST API calls. I am adding basic auth headers to all requests. If you want to go that route just enter your username/password in the Authorization table and click Update Request. That will add a new header to the HTTP request containing your username/password. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, the API-explorer add-on is wonderful. I deployed it on my test server and you can try out all the REST APIs without having to use Postman.&amp;nbsp;You have to build it yourself, but it is IMHO worth the time to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/rest-api-explorer" title="https://github.com/Alfresco/rest-api-explorer" rel="nofollow noopener noreferrer"&gt;GitHub - Alfresco/rest-api-explorer: Public REST API Explorer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:55:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-get-token-for-alfresco-authorization/m-p/5321#M2627</guid>
      <dc:creator>edcearl</dc:creator>
      <dc:date>2017-03-09T14:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can ı get token for alfresko authorization</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-get-token-for-alfresco-authorization/m-p/5322#M2628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you your answer. It runs successfully. I want to write in detail for help to encounter like my problem.&lt;/P&gt;&lt;P&gt;I pass username&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;assword(But base64 encoded) Authorization field in header and it works without error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 08:28:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-get-token-for-alfresco-authorization/m-p/5322#M2628</guid>
      <dc:creator>hilal</dc:creator>
      <dc:date>2017-03-11T08:28:47Z</dc:date>
    </item>
  </channel>
</rss>

