<?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 Generating Power Bi Access Token in NodeJS in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Generating-Power-Bi-Access-Token-in-NodeJS/m-p/276522#M8292</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to generate an access token to call the Power BI REST api.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't had any luck following multiple tutorials where I've had various problems:&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-get-token/" target="_self"&gt;Can't get VS2015 on my machine (mac) and version&amp;nbsp;&lt;SPAN&gt;2.21.301221612&lt;/SPAN&gt;&amp;nbsp;of the suggested packaged doesn't exisit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get an access token for a web app where the app owns the data, so I already know the credientials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I would like an access token to stay static so I can generate embed tokens without having to get a new access token for each embed request. I would also like to contain this to NodeJS as that's what my server is written in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 00:44:41 GMT</pubDate>
    <dc:creator>cheesepudding</dc:creator>
    <dc:date>2017-10-12T00:44:41Z</dc:date>
    <item>
      <title>Generating Power Bi Access Token in NodeJS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Generating-Power-Bi-Access-Token-in-NodeJS/m-p/276522#M8292</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to generate an access token to call the Power BI REST api.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't had any luck following multiple tutorials where I've had various problems:&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-get-token/" target="_self"&gt;Can't get VS2015 on my machine (mac) and version&amp;nbsp;&lt;SPAN&gt;2.21.301221612&lt;/SPAN&gt;&amp;nbsp;of the suggested packaged doesn't exisit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get an access token for a web app where the app owns the data, so I already know the credientials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I would like an access token to stay static so I can generate embed tokens without having to get a new access token for each embed request. I would also like to contain this to NodeJS as that's what my server is written in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 00:44:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Generating-Power-Bi-Access-Token-in-NodeJS/m-p/276522#M8292</guid>
      <dc:creator>cheesepudding</dc:creator>
      <dc:date>2017-10-12T00:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Power Bi Access Token in NodeJS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Generating-Power-Bi-Access-Token-in-NodeJS/m-p/277722#M8326</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/44197"&gt;@cheesepudding&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been trying to generate an access token to call the Power BI REST api.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't had any luck following multiple tutorials where I've had various problems:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-get-token/" target="_self"&gt;Can't get VS2015 on my machine (mac) and version&amp;nbsp;&lt;SPAN&gt;2.21.301221612&lt;/SPAN&gt;&amp;nbsp;of the suggested packaged doesn't exisit&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to get an access token for a web app where the app owns the data, so I already know the credientials.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally I would like an access token to&lt;STRONG&gt; stay static&lt;/STRONG&gt; so I can generate embed tokens without having to get a new access token for each embed request. I would also like to contain this to NodeJS as that's what my server is written in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/44197"&gt;@cheesepudding&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;It is not possible, by default an access token would expire in one hour, see &lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/active-directory-configurable-token-lifetimes#token-types" target="_self"&gt;AAD token lifetime&lt;/A&gt;. What is the concern to get a new access token every time? I don't know NodeJS, but you can get a new token simply by calling a POST REST API.&lt;/P&gt;
&lt;PRE&gt;POST /common/oauth2/token HTTP/1.1
Host: login.windows.net 
Content-Type: application/x-www-form-urlencoded

client_id={your client id}&amp;amp;grant_type=password&amp;amp;resource=https%3A%2F%2Fanalysis.windows.net%2Fpowerbi%2Fapi&amp;amp;username={your power bi account}&amp;amp;password={your power bi account password}&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Oct 2017 08:58:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Generating-Power-Bi-Access-Token-in-NodeJS/m-p/277722#M8326</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-10-13T08:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Power Bi Access Token in NodeJS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Generating-Power-Bi-Access-Token-in-NodeJS/m-p/306389#M9008</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answer, this is what I was looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where would I find the documentation for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a look on&amp;nbsp;&lt;A href="https://msdn.microsoft.com/library/dn877544.aspx" target="_blank"&gt;https://msdn.microsoft.com/library/dn877544.aspx&lt;/A&gt; , but their link is broken.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cheese Pudding&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2017 23:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Generating-Power-Bi-Access-Token-in-NodeJS/m-p/306389#M9008</guid>
      <dc:creator>cheesepudding</dc:creator>
      <dc:date>2017-11-19T23:57:25Z</dc:date>
    </item>
  </channel>
</rss>

