<?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 Fetch Token from MicrosoftOnline API(OAuth 2.0) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Fetch-Token-from-MicrosoftOnline-API-OAuth-2-0/m-p/388352#M246643</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I hope you are doing well. Please help me with below request.&lt;/P&gt;&lt;P&gt;Currenty our client is using MS Dynamics and they gave basic details required to fetch token.&lt;/P&gt;&lt;P&gt;In Postman - 1. I'm choosing OAuth 2.0 in Authorization.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Giving the basic details(shared below) it asked for.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. Then clicking on "Get New Access Token"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4. New window pops up to enter my Username and Password.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5. Post validating Creds, it gives the Token in another window.&lt;/P&gt;&lt;P&gt;Problem :&amp;nbsp;All the steps which I'm doing in postman, I want to implement the same in Apache Nifi(to fetch the Token). Basically I need an API along with a request payload to fetch the token.(I'm worried if it is possible to do so in one call, as we need to give User Creds too).&lt;/P&gt;&lt;P&gt;Basic Details -&lt;BR /&gt;Token Name - MyToken&lt;BR /&gt;Grant Type - implicit&lt;BR /&gt;Callback URL - &lt;A href="https://callbackUrl" target="_blank" rel="noopener"&gt;https://callbackUrl&lt;/A&gt;&lt;BR /&gt;Auth URL -&amp;nbsp;&lt;A href="https://login.microsoftonline.com/common/oauth2/authorise?resource=https://company007.crm5.dynamic.com/" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/oauth2/authorise?resource=https://company007.crm5.dynamic.com/&lt;/A&gt;&lt;BR /&gt;Client ID -&amp;nbsp;d9cdd9f1-3fjdf45-005jl-9e5b-1bb87-4jdfhn&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AidenMartin_0-1716800999181.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40778i7FFFA2F5D36A1BB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AidenMartin_0-1716800999181.png" alt="AidenMartin_0-1716800999181.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 09:12:01 GMT</pubDate>
    <dc:creator>AidenMartin</dc:creator>
    <dc:date>2024-05-27T09:12:01Z</dc:date>
    <item>
      <title>Fetch Token from MicrosoftOnline API(OAuth 2.0)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-Token-from-MicrosoftOnline-API-OAuth-2-0/m-p/388352#M246643</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I hope you are doing well. Please help me with below request.&lt;/P&gt;&lt;P&gt;Currenty our client is using MS Dynamics and they gave basic details required to fetch token.&lt;/P&gt;&lt;P&gt;In Postman - 1. I'm choosing OAuth 2.0 in Authorization.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Giving the basic details(shared below) it asked for.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. Then clicking on "Get New Access Token"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4. New window pops up to enter my Username and Password.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5. Post validating Creds, it gives the Token in another window.&lt;/P&gt;&lt;P&gt;Problem :&amp;nbsp;All the steps which I'm doing in postman, I want to implement the same in Apache Nifi(to fetch the Token). Basically I need an API along with a request payload to fetch the token.(I'm worried if it is possible to do so in one call, as we need to give User Creds too).&lt;/P&gt;&lt;P&gt;Basic Details -&lt;BR /&gt;Token Name - MyToken&lt;BR /&gt;Grant Type - implicit&lt;BR /&gt;Callback URL - &lt;A href="https://callbackUrl" target="_blank" rel="noopener"&gt;https://callbackUrl&lt;/A&gt;&lt;BR /&gt;Auth URL -&amp;nbsp;&lt;A href="https://login.microsoftonline.com/common/oauth2/authorise?resource=https://company007.crm5.dynamic.com/" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/oauth2/authorise?resource=https://company007.crm5.dynamic.com/&lt;/A&gt;&lt;BR /&gt;Client ID -&amp;nbsp;d9cdd9f1-3fjdf45-005jl-9e5b-1bb87-4jdfhn&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AidenMartin_0-1716800999181.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40778i7FFFA2F5D36A1BB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AidenMartin_0-1716800999181.png" alt="AidenMartin_0-1716800999181.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 09:12:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-Token-from-MicrosoftOnline-API-OAuth-2-0/m-p/388352#M246643</guid>
      <dc:creator>AidenMartin</dc:creator>
      <dc:date>2024-05-27T09:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch Token from MicrosoftOnline API(OAuth 2.0)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Fetch-Token-from-MicrosoftOnline-API-OAuth-2-0/m-p/388613#M246719</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109438"&gt;@AidenMartin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I hope you are doing well. Please help me with below request.&lt;/P&gt;&lt;P&gt;Currenty our client is using MS Dynamics and they gave basic details required to fetch token.&lt;/P&gt;&lt;P&gt;In Postman - 1. I'm choosing OAuth 2.0 in Authorization.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Giving the basic details(shared below) it asked for.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. Then clicking on "Get New Access Token"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4. New window pops up to enter my Username and Password.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5. Post validating Creds, it gives the Token in another window.&lt;/P&gt;&lt;P&gt;Problem :&amp;nbsp;All the steps which I'm doing in postman, I want to implement the same in Apache Nifi(to fetch the Token). Basically I need an API along with a request payload to fetch the token.(I'm worried if it is possible to do so in one call, as we need to give User Creds too).&lt;/P&gt;&lt;P&gt;Basic Details -&lt;BR /&gt;Token Name - MyToken&lt;BR /&gt;Grant Type - implicit&lt;BR /&gt;Callback URL - &lt;A href="https://callbackUrl" target="_blank" rel="noopener"&gt;https://callbackUrl&lt;/A&gt;&lt;BR /&gt;Auth URL -&amp;nbsp;&lt;A href="https://login.microsoftonline.com/common/oauth2/authorise?resource=https://company007.crm5.dynamic.com/" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/&lt;/A&gt;&lt;A href="https://www-floridablue.com" target="_self"&gt;floridablue&lt;/A&gt;&lt;A href="https://login.microsoftonline.com/common/oauth2/authorise?resource=https://company007.crm5.dynamic.com/" target="_blank" rel="noopener"&gt;/oauth2/authorise?resource=https://company007.crm5.dynamic.com/&lt;/A&gt;&lt;BR /&gt;Client ID -&amp;nbsp;d9cdd9f1-3fjdf45-005jl-9e5b-1bb87-4jdfhn&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AidenMartin_0-1716800999181.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40778i7FFFA2F5D36A1BB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AidenMartin_0-1716800999181.png" alt="AidenMartin_0-1716800999181.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109438"&gt;@AidenMartin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certainly! To automate the OAuth 2.0 token retrieval in Apache NiFi, you can:&lt;/P&gt;&lt;P&gt;Use the InvokeHTTP processor to request the token.&lt;BR /&gt;Extract the token with EvaluateJsonPath.&lt;BR /&gt;Store and use the token in subsequent requests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regard,&lt;BR /&gt;Diana Hill&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 06:09:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Fetch-Token-from-MicrosoftOnline-API-OAuth-2-0/m-p/388613#M246719</guid>
      <dc:creator>diana658</dc:creator>
      <dc:date>2024-05-31T06:09:54Z</dc:date>
    </item>
  </channel>
</rss>

