<?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: Azure AD oAuth request returns html page and not oAuth Code in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/368438#M10987</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/56516"&gt;@franckster&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of using&amp;nbsp;&lt;SPAN&gt;the Restlet Client Chrome extension, could you try using&amp;nbsp;POSTMAN which is recommended for testing/debug purpose. For more details, you can refer to &lt;A href="https://community.powerbi.com/t5/Developer/Power-BI-REST-API-using-postman-generate-embed-token/m-p/310054" target="_self"&gt;this&lt;/A&gt; similar thread.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/71134i01642EB94D357B82/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2018 07:03:17 GMT</pubDate>
    <dc:creator>v-ljerr-msft</dc:creator>
    <dc:date>2018-03-02T07:03:17Z</dc:date>
    <item>
      <title>Azure AD oAuth request returns html page and not oAuth Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/367809#M10969</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to PBI and the AAD world, presently working on an Embedded App Owns Data POC for our company, to display custom dashboard for our clients within our application.&lt;/P&gt;&lt;P&gt;I've followed all the step to declare a PowerBI Native App and grant permissions in our Azure Active Directory tenant, got a client id, the oAuth API endpoint. I declared urn:ietf:wg:oauth:2.0:oob as a return url for now.&lt;/P&gt;&lt;P&gt;Since we developped our app in Ruby on Rails, I'm test riding the API with raw calls with the Restlet Client Chrome extension.&lt;/P&gt;&lt;P&gt;I'm following the instructions there :&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-US/azure/active-directory/develop/active-directory-protocols-oauth-code" target="_blank"&gt;https://docs.microsoft.com/en-US/azure/active-directory/develop/active-directory-protocols-oauth-code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am stuck on the first step.&amp;nbsp;When I call POST on this url :&lt;/P&gt;&lt;P&gt;&lt;A href="https://login.microsoftonline.com/&amp;quot;mytenantid&amp;quot;/oauth2/authorize?client_id=&amp;quot;myclientid&amp;quot;&amp;amp;response_type=code&amp;amp;response_mode=query" target="_blank"&gt;https://login.microsoftonline.com/"mytenantid"/oauth2/authorize?client_id="myclientid"&amp;amp;response_type=code&amp;amp;response_mode=query&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't get a response with an AD access code but an html page that basically says "Connect to your application".&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated...&lt;/P&gt;&lt;P&gt;Thanks forward !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:35:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/367809#M10969</guid>
      <dc:creator>franckster</dc:creator>
      <dc:date>2018-03-01T11:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AD oAuth request returns html page and not oAuth Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/368438#M10987</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/56516"&gt;@franckster&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of using&amp;nbsp;&lt;SPAN&gt;the Restlet Client Chrome extension, could you try using&amp;nbsp;POSTMAN which is recommended for testing/debug purpose. For more details, you can refer to &lt;A href="https://community.powerbi.com/t5/Developer/Power-BI-REST-API-using-postman-generate-embed-token/m-p/310054" target="_self"&gt;this&lt;/A&gt; similar thread.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/71134i01642EB94D357B82/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 07:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/368438#M10987</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2018-03-02T07:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AD oAuth request returns html page and not oAuth Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/369847#M11033</link>
      <description>&lt;P&gt;Thanks a lot for reaching out !&lt;/P&gt;&lt;P&gt;I had a PBI Support engineer on the phone Friday and we&amp;nbsp;managed to get a report embedded&amp;nbsp;using the .NET App Owns Data Project on Github.&lt;/P&gt;&lt;P&gt;The trouble was that you need to pass Client credentials to get the AD oAuth Access Token in the first place even for an App Owns Data scenario. And even though I read the doc a few dozen times, I never came across it.&lt;/P&gt;&lt;P&gt;Adam Saxton indeed mentions the "Master account" in one of his videos and the code does create variables for a username &amp;amp; password to be passed to AD.&lt;/P&gt;&lt;P&gt;We couldn't find it in the API doc when we looked up for the raw API call url&amp;nbsp;nor&amp;nbsp;in the App Owns Data source code either.&lt;/P&gt;&lt;P&gt;The engineer&amp;nbsp;said he would get in touch with the folks over in Redmond and email me went the answer came.&lt;/P&gt;&lt;P&gt;I'll post it back here once I have it !&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 14:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/369847#M11033</guid>
      <dc:creator>franckster</dc:creator>
      <dc:date>2018-03-05T14:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AD oAuth request returns html page and not oAuth Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/372166#M11100</link>
      <description>&lt;P&gt;Replying to myself but will be useful for others too seeing the time I spent on the matter...&lt;/P&gt;&lt;P&gt;MS Support pointed me to this thread which solved my problem :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/How-To-Get-embed-token-using-Get-Post-only/td-p/294475" target="_blank"&gt;https://community.powerbi.com/t5/Developer/How-To-Get-embed-token-using-Get-Post-only/td-p/294475&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I used Postman to try everything, making sure to pass the body of the Get Embed Token API POST calls as Raw / JSON (application/json) (&amp;nbsp;cf radio buttons underneath the Authorization/Headers/Body/Pre-request Script/Test tabs). Doing otherwise would set this particular API calls off for passing form-data.&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;&lt;P&gt;Thanks again&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/11689"&gt;@v-ljerr-msft&lt;/a&gt;&amp;nbsp;for your help !&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 08:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/372166#M11100</guid>
      <dc:creator>franckster</dc:creator>
      <dc:date>2018-03-08T08:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AD oAuth request returns html page and not oAuth Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/476458#M14619</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/11689"&gt;@v-ljerr-msft&lt;/a&gt;&lt;BR /&gt;When i try to get Embed Token by sending Access Token i'm taking 403 Forbidden (step 3).&amp;nbsp; I'm sending data as raw and application/json .&lt;BR /&gt;Could you recommend something to me fix this problem ?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 12:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-oAuth-request-returns-html-page-and-not-oAuth-Code/m-p/476458#M14619</guid>
      <dc:creator>d_u_a</dc:creator>
      <dc:date>2018-07-31T12:34:16Z</dc:date>
    </item>
  </channel>
</rss>

