<?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: How to resolve thePower  BI API token issue in the Azure Active Directory Federation Services AD in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-resolve-thePower-BI-API-token-issue-in-the-Azure-Active/m-p/884473#M21823</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please provide the detailed error description?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 10:04:20 GMT</pubDate>
    <dc:creator>Jayendran</dc:creator>
    <dc:date>2019-12-26T10:04:20Z</dc:date>
    <item>
      <title>How to resolve thePower  BI API token issue in the Azure Active Directory Federation Services ADFS ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-resolve-thePower-BI-API-token-issue-in-the-Azure-Active/m-p/883199#M21801</link>
      <description>&lt;P&gt;&lt;BR /&gt;The code was working fine until we have setup the Power BI Single Sign-on (SSO). Now it throws token error. Has anyone solved this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def token():&lt;/P&gt;&lt;P&gt;username,password = login() #get login&lt;BR /&gt;data = {&lt;BR /&gt;'grant_type': 'password',&lt;BR /&gt;'scope': 'openid',&lt;BR /&gt;'resource': '&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank" rel="noopener"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;',&lt;BR /&gt;'client_id': '******',&lt;BR /&gt;'username': username,&lt;BR /&gt;'password': password&lt;BR /&gt;}&lt;BR /&gt;endpoint = '&lt;A href="https://login.microsoftonline.com/common/oauth2/token" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt;'&lt;BR /&gt;r = requests.post(endpoint, data=data)&lt;BR /&gt;data = r.json()&lt;BR /&gt;access_token = data['access_token']&lt;BR /&gt;headers = {'Content-Type': "application/json",&lt;BR /&gt;'Authorization': 'Bearer ' +access_token}&lt;BR /&gt;return headers&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 00:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-resolve-thePower-BI-API-token-issue-in-the-Azure-Active/m-p/883199#M21801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-24T00:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve thePower  BI API token issue in the Azure Active Directory Federation Services AD</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-resolve-thePower-BI-API-token-issue-in-the-Azure-Active/m-p/884473#M21823</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please provide the detailed error description?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 10:04:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-resolve-thePower-BI-API-token-issue-in-the-Azure-Active/m-p/884473#M21823</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-12-26T10:04:20Z</dc:date>
    </item>
  </channel>
</rss>

