<?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: Using dynamic property with StandardOauth2AccessTokenProvider in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Using-dynamic-property-with/m-p/389666#M247039</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We you can try something like this.&lt;/P&gt;&lt;P&gt;Step 1 : Add an InvokeHTTP Processor to Generate the Token&lt;/P&gt;&lt;P&gt;Step 2:&amp;nbsp;Extract Token Using EvaluateJsonPath Processor:&lt;/P&gt;&lt;P&gt;Step 3:&amp;nbsp;Use the Token in a InvokeHTTP&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 10:34:03 GMT</pubDate>
    <dc:creator>saquibsk</dc:creator>
    <dc:date>2024-06-27T10:34:03Z</dc:date>
    <item>
      <title>Using dynamic property with StandardOauth2AccessTokenProvider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-dynamic-property-with/m-p/389650#M247029</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to use invokehttp with StandardOAuth2AccessTokenProvider controller to automatically get Access Token and make the API call with the token. The requirement to get token has an extra field compared to standard OAUTH token :&lt;/P&gt;&lt;P&gt;Below is the curl command. It includes extra key called auth_chain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;curl&amp;nbsp;--location&amp;nbsp;'&lt;A href="https://xyedfrg.xom/access_token" target="_blank" rel="noopener"&gt;https://xyedfrg.xom/access_token&lt;/A&gt;'&amp;nbsp;\&lt;/DIV&gt;&lt;DIV&gt;--header&amp;nbsp;'content-type:&amp;nbsp;application/x-www-form-urlencoded'&amp;nbsp;\&lt;/DIV&gt;&lt;DIV&gt;--data-urlencode&amp;nbsp;'username=test'&amp;nbsp;\&lt;/DIV&gt;&lt;DIV&gt;--data-urlencode&amp;nbsp;'password=test'&amp;nbsp;\&lt;/DIV&gt;&lt;DIV&gt;--data-urlencode&amp;nbsp;'client_id=F1234rdcfhkv'&amp;nbsp;\&lt;/DIV&gt;&lt;DIV&gt;--data-urlencode&amp;nbsp;'client_secret=test-secret'&amp;nbsp;\&lt;/DIV&gt;&lt;DIV&gt;--data-urlencode&amp;nbsp;'grant_type=password'&amp;nbsp;\&lt;/DIV&gt;&lt;DIV&gt;--data-urlencode&amp;nbsp;'auth_chain=OAuthLdapService'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But this is how the StandardOAuth2AccessTokenProvider looks:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlphaNiFi_0-1719460304719.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41058iE17F4504C42FD2E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlphaNiFi_0-1719460304719.png" alt="AlphaNiFi_0-1719460304719.png" /&gt;&lt;/span&gt;&lt;P&gt;If I add auth_chain as property it errors out saying :&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlphaNiFi_1-1719460339925.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41059i2047DA2E6BDD676D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlphaNiFi_1-1719460339925.png" alt="AlphaNiFi_1-1719460339925.png" /&gt;&lt;/span&gt;&lt;P&gt;How can I make this OAUTH call to get token using invoke http.&lt;/P&gt;&lt;P&gt;*please note, cannot use the option provided here (&lt;A href="https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339398" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339398&lt;/A&gt;), as it exposes the credentials in data provenance and application layer and network layer too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jun 2024 03:57:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-dynamic-property-with/m-p/389650#M247029</guid>
      <dc:creator>AlphaNiFi</dc:creator>
      <dc:date>2024-06-27T03:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using dynamic property with StandardOauth2AccessTokenProvider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-dynamic-property-with/m-p/389657#M247033</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111310"&gt;@AlphaNiFi&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 09:03:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-dynamic-property-with/m-p/389657#M247033</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-06-27T09:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using dynamic property with StandardOauth2AccessTokenProvider</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-dynamic-property-with/m-p/389666#M247039</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We you can try something like this.&lt;/P&gt;&lt;P&gt;Step 1 : Add an InvokeHTTP Processor to Generate the Token&lt;/P&gt;&lt;P&gt;Step 2:&amp;nbsp;Extract Token Using EvaluateJsonPath Processor:&lt;/P&gt;&lt;P&gt;Step 3:&amp;nbsp;Use the Token in a InvokeHTTP&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 10:34:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-dynamic-property-with/m-p/389666#M247039</guid>
      <dc:creator>saquibsk</dc:creator>
      <dc:date>2024-06-27T10:34:03Z</dc:date>
    </item>
  </channel>
</rss>

