<?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>question Re: How to get the access token by invoking NIFI Rest API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196060#M59316</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt;&lt;P&gt;Here is the format of the command you need to get a token:&lt;/P&gt;&lt;P&gt;curl 'https://nifi-host:port/nifi-api/access/token' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data 'username=ldap-username&amp;amp;password=ldap-password' --compressed —insecure&lt;/P&gt;&lt;P&gt;Then add the following to all of your subsequent curl commands&lt;/P&gt;&lt;P&gt;-H 'Authorization: Bearer token-returned’&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2017 01:41:36 GMT</pubDate>
    <dc:creator>Wynner</dc:creator>
    <dc:date>2017-04-12T01:41:36Z</dc:date>
    <item>
      <title>How to get the access token by invoking NIFI Rest API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196059#M59315</link>
      <description>&lt;P&gt;I am invoking an API command (nifi-api/access/token) to get the access token. But i am getting blank output. we have LDAP configured in NiFi Cluster and i am able to login to NiFi UI using my credentials. I have started exploring the NiFi rest API for the first time. Any help would be appreciated !!&lt;/P&gt;&lt;P&gt;Thank you in Advance,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 22:04:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196059#M59315</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-04-11T22:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the access token by invoking NIFI Rest API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196060#M59316</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt;&lt;P&gt;Here is the format of the command you need to get a token:&lt;/P&gt;&lt;P&gt;curl 'https://nifi-host:port/nifi-api/access/token' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data 'username=ldap-username&amp;amp;password=ldap-password' --compressed —insecure&lt;/P&gt;&lt;P&gt;Then add the following to all of your subsequent curl commands&lt;/P&gt;&lt;P&gt;-H 'Authorization: Bearer token-returned’&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 01:41:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196060#M59316</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2017-04-12T01:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the access token by invoking NIFI Rest API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196061#M59317</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the command you need, just fill in your appropriate values:&lt;/P&gt;&lt;P&gt;curl 'https://nifi-host:port/nifi-api/access/token' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data 'username=ldap-username&amp;amp;password=ldap-password' --compressed —insecure&lt;/P&gt;&lt;P&gt;And there you go, this will return the token you need.&lt;/P&gt;&lt;P&gt;The subsequent curl commands will need the token returned as part of the command:&lt;/P&gt;&lt;P&gt;-H 'Authorization: Bearer  token-returned'&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 08:24:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196061#M59317</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2017-04-12T08:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the access token by invoking NIFI Rest API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196062#M59318</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/286/dwynne.html" nodeid="286"&gt;@Wynner&lt;/A&gt;, I am able to get the access token using your code. can you please recommend the Rest API documentation which i should follow.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 19:17:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196062#M59318</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-04-12T19:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the access token by invoking NIFI Rest API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196063#M59319</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The Rest API documentation will be found at the URL:  &lt;A href="https://nifi-host:port/nifi-docs/rest-api"&gt;https://nifi-host:port/nifi-docs/rest-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just replace the the nifi-host and port values with your information.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 20:27:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-access-token-by-invoking-NIFI-Rest-API/m-p/196063#M59319</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2017-04-12T20:27:28Z</dc:date>
    </item>
  </channel>
</rss>

