<?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: Authentication Pain - adal-node in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/37358#M1156</link>
    <description>&lt;P&gt;This &lt;A href="http://stackoverflow.com/questions/32341877/cant-get-client-credentials-access-token-to-authorize-power-bi?rq=1" target="_self"&gt;stackoverflow thread&lt;/A&gt; will probably help. Power BI needs user to be involved in authentication. The 403 is 'forbidden' so url is found but permissions not granted.&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2016 20:06:20 GMT</pubDate>
    <dc:creator>curtisp</dc:creator>
    <dc:date>2016-05-21T20:06:20Z</dc:date>
    <item>
      <title>Authentication Pain - adal-node</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/21629#M355</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to authenticate with Azure AD to access the Power BI APIs, but having some trouble.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using adal-node to write a console app that uses the server to server via client credentials example&amp;nbsp;&lt;A href="https://www.npmjs.com/package/adal-node" target="_blank"&gt;outlined here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I can't seem to get access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use &lt;A href="https://login.windows.net/common/oauth2/authorize" target="_blank"&gt;https://login.windows.net/common/oauth2/authorize&lt;/A&gt; as the authority URI (as per the powerbi doc), I get a 404 which seems odd. &amp;nbsp;If I use the authority URI as per the example for adal-node, I appear to get a token. &amp;nbsp;On using that token to access api.powerbi.com though, I get a 403 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone is able to shed some light on this, that would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 14:09:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/21629#M355</guid>
      <dc:creator>dparkinson</dc:creator>
      <dc:date>2016-03-03T14:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Pain - adal-node</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/37358#M1156</link>
      <description>&lt;P&gt;This &lt;A href="http://stackoverflow.com/questions/32341877/cant-get-client-credentials-access-token-to-authorize-power-bi?rq=1" target="_self"&gt;stackoverflow thread&lt;/A&gt; will probably help. Power BI needs user to be involved in authentication. The 403 is 'forbidden' so url is found but permissions not granted.&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 20:06:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/37358#M1156</guid>
      <dc:creator>curtisp</dc:creator>
      <dc:date>2016-05-21T20:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Pain - adal-node</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/400203#M11914</link>
      <description>&lt;P&gt;You should use the authorityHostUrl like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var authorityHostUrl = 'https://login.microsoftonline.com/';
var tenant = 'yourtenant.com';
var uri = authorityHostUrl + '/' + tenant;&lt;BR /&gt;...&lt;BR /&gt;var context = new adal.AuthenticationContext(uri);//Start adal context&lt;/PRE&gt;&lt;P&gt;([G]old)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 14:02:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/400203#M11914</guid>
      <dc:creator>alexsilvar</dc:creator>
      <dc:date>2018-04-19T14:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Pain - adal-node</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/400347#M11920</link>
      <description>&lt;P&gt;Could you please elaborate on this? I am frustrated&amp;nbsp;with the lack of granularity of the refresh process and would like&amp;nbsp;to kick off a dataset refresh via powershell&amp;nbsp;after I complete a number of ETL processes.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 16:09:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authentication-Pain-adal-node/m-p/400347#M11920</guid>
      <dc:creator>duncfair</dc:creator>
      <dc:date>2018-04-19T16:09:49Z</dc:date>
    </item>
  </channel>
</rss>

