<?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 RestAPI Authentication in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/RestAPI-Authentication/m-p/424105#M12740</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to put data to PowerBI dataset from javascript.&lt;BR /&gt;But, POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt; returns 401 Unauthorized&lt;BR /&gt;How can I be authorized?&lt;BR /&gt;&lt;BR /&gt;My step is&lt;BR /&gt;1. register myapp to azure AD, get clientID and clientSecret&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;A href="https://dev.powerbi.com/apps" target="_blank"&gt;https://dev.powerbi.com/apps&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Server-side Web app&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Read and Write All Datasets&lt;BR /&gt;&lt;BR /&gt;2. get access token&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/" target="_blank"&gt;https://login.microsoftonline.com/&amp;lt;tenant-id&amp;gt;/oauth2/token&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- resource=&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;3. POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Authorization: Bearer ey...mAtw&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 02:27:35 GMT</pubDate>
    <dc:creator>nakaya</dc:creator>
    <dc:date>2018-05-24T02:27:35Z</dc:date>
    <item>
      <title>RestAPI Authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RestAPI-Authentication/m-p/424105#M12740</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to put data to PowerBI dataset from javascript.&lt;BR /&gt;But, POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt; returns 401 Unauthorized&lt;BR /&gt;How can I be authorized?&lt;BR /&gt;&lt;BR /&gt;My step is&lt;BR /&gt;1. register myapp to azure AD, get clientID and clientSecret&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;A href="https://dev.powerbi.com/apps" target="_blank"&gt;https://dev.powerbi.com/apps&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Server-side Web app&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Read and Write All Datasets&lt;BR /&gt;&lt;BR /&gt;2. get access token&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/" target="_blank"&gt;https://login.microsoftonline.com/&amp;lt;tenant-id&amp;gt;/oauth2/token&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- resource=&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;3. POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Authorization: Bearer ey...mAtw&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 02:27:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RestAPI-Authentication/m-p/424105#M12740</guid>
      <dc:creator>nakaya</dc:creator>
      <dc:date>2018-05-24T02:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: RestAPI Authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RestAPI-Authentication/m-p/425310#M12802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/65745"&gt;@nakaya&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems you used some wrong URLs. Please refer to &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-register-app-with-azure-ad" target="_self"&gt;this documentation&lt;/A&gt;. It's very clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 08:41:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RestAPI-Authentication/m-p/425310#M12802</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-05-25T08:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: RestAPI Authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RestAPI-Authentication/m-p/426222#M12886</link>
      <description>&lt;P&gt;Thanks for your replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Please refer to &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-register-app-with-azure-ad" target="_self" rel="nofollow noopener noreferrer"&gt;this documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do that in javascript, not .net app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any documentation?&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 00:02:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RestAPI-Authentication/m-p/426222#M12886</guid>
      <dc:creator>nakaya</dc:creator>
      <dc:date>2018-05-28T00:02:17Z</dc:date>
    </item>
  </channel>
</rss>

