<?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: Get clientId value in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404258#M252293</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/117603"&gt;@nifier&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In order to answer this question, more detail is needed about your NiFi setup.&lt;BR /&gt;&lt;BR /&gt;How is your NiFi authentication configured?&amp;nbsp; Are you authenticating to your secured NiFi via a ClientAuth user certificate, using LDAP/AD, Kerberos, Spnego, etc...?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
    <pubDate>Mon, 17 Mar 2025 12:17:28 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-03-17T12:17:28Z</dc:date>
    <item>
      <title>Get clientId value</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404211#M252286</link>
      <description>&lt;P&gt;How do I get the Client Id to make any processor update using REST PUT call ?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 08:09:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404211#M252286</guid>
      <dc:creator>nifier</dc:creator>
      <dc:date>2025-03-16T08:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get clientId value</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404258#M252293</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/117603"&gt;@nifier&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In order to answer this question, more detail is needed about your NiFi setup.&lt;BR /&gt;&lt;BR /&gt;How is your NiFi authentication configured?&amp;nbsp; Are you authenticating to your secured NiFi via a ClientAuth user certificate, using LDAP/AD, Kerberos, Spnego, etc...?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 12:17:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404258#M252293</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-03-17T12:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get clientId value</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404264#M252296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Thanks for your reply.&lt;/P&gt;&lt;P&gt;We are using LDAP to authenticate&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 15:22:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404264#M252296</guid>
      <dc:creator>nifier</dc:creator>
      <dc:date>2025-03-17T15:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get clientId value</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404286#M252306</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/117603"&gt;@nifier&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you trying to build a dataflow on your NiFi canvas to programmatically to these rest-api calls or just looking to get a user token to used to make rest-api calls via some external process?&lt;BR /&gt;&lt;BR /&gt;The easiest way to learn the rest-api calls it by using the developer tools in your browser.&amp;nbsp; Open developer tools and then perform the action of logging in via the browser to capture the rest-api call made to get your user token.&amp;nbsp; Developer tools will even give you the option to right click on the request and select copy as curl.&amp;nbsp; That being said the browser is going to add a bunch of additional headers that are not needed.&lt;/P&gt;&lt;P&gt;I generally discourage using ldap when building dataflows to automate rest-api call in NiFi.&amp;nbsp; Mainly because your username and password would exposed unencrypted in the dataflow where anyone with access could get it.&amp;nbsp; &amp;nbsp;In this scenario, creating a private key clientAuth certificate would be the better way to go.&amp;nbsp; You can add your certificate to a StandardRestrictedSSLContextService where your password is encrypted, you don't need to worry about fetching user tokens,&amp;nbsp; or user token expiration.&amp;nbsp; A secured NiFi will always support MutualTLS even when ldap is also configured.&amp;nbsp; NiFi will WANT a clientAuth certificate first and only redirect to ldap when one is not provided.&lt;BR /&gt;&lt;BR /&gt;Above being said, obtaining a user token using ldap-provider authentication can be done using below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl 'https://&amp;lt;nifi hostname&amp;gt;:&amp;lt;nifi port&amp;gt;/nifi-api/access/token' -H 'content-type: application/x-www-form-urlencoded;charset=UTF-8' --data-raw 'username=&amp;lt;username&amp;gt;&amp;amp;password=&amp;lt;user password&amp;gt;' --insecure&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The bearer token received in response would need to be used in subsequent rest-api calls. Once the token expires you would need to get a new one.&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 19:09:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404286#M252306</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-03-17T19:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get clientId value</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404965#M252405</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103"&gt;@Matt&lt;/a&gt;&amp;nbsp;Thanks for the info.&lt;/P&gt;&lt;P&gt;What I was was looking for found it in this api&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;flow/client-id&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 06:41:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-clientId-value/m-p/404965#M252405</guid>
      <dc:creator>nifier</dc:creator>
      <dc:date>2025-03-28T06:41:54Z</dc:date>
    </item>
  </channel>
</rss>

