<?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 Token Access in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Token-Access/m-p/2221343#M33290</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to get the token access through an html call, using the post, however in Postman, it works fine, however when I try to call inside the application the error.&lt;BR /&gt;What am I doing wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;envelope="grant_type=password&amp;amp;scope=openid&amp;amp;resource=&lt;A href="https://analysis.windows.net/powerbi/api&amp;amp;client_id=xxxxx&amp;amp;username=xxxx&amp;amp;password=xxxx&amp;amp;client_secret=xxxxx" target="_blank" rel="noopener"&gt;https://analysis.windows.net/powerbi/api&amp;amp;client_id=xxxxx&amp;amp;username=xxxx&amp;amp;password=xxxx&amp;amp;client_secret=xxxxx&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;I'm using the object MSXML2.XMLHTTP60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; With xmlHTTP&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .open("post",&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &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;/SPAN&gt;, False)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .send(Envelope)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Retorno = .responseXML.xml&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Ready State: 4&lt;/P&gt;&lt;P&gt;HTTP resquest status: 401&lt;/P&gt;</description>
    <pubDate>Sun, 05 Dec 2021 14:09:49 GMT</pubDate>
    <dc:creator>venildo</dc:creator>
    <dc:date>2021-12-05T14:09:49Z</dc:date>
    <item>
      <title>Token Access</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Token-Access/m-p/2221343#M33290</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to get the token access through an html call, using the post, however in Postman, it works fine, however when I try to call inside the application the error.&lt;BR /&gt;What am I doing wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;envelope="grant_type=password&amp;amp;scope=openid&amp;amp;resource=&lt;A href="https://analysis.windows.net/powerbi/api&amp;amp;client_id=xxxxx&amp;amp;username=xxxx&amp;amp;password=xxxx&amp;amp;client_secret=xxxxx" target="_blank" rel="noopener"&gt;https://analysis.windows.net/powerbi/api&amp;amp;client_id=xxxxx&amp;amp;username=xxxx&amp;amp;password=xxxx&amp;amp;client_secret=xxxxx&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;I'm using the object MSXML2.XMLHTTP60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; With xmlHTTP&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .open("post",&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &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;/SPAN&gt;, False)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .send(Envelope)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Retorno = .responseXML.xml&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Ready State: 4&lt;/P&gt;&lt;P&gt;HTTP resquest status: 401&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 14:09:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Token-Access/m-p/2221343#M33290</guid>
      <dc:creator>venildo</dc:creator>
      <dc:date>2021-12-05T14:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Token Access</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Token-Access/m-p/2226711#M33338</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/82622"&gt;@venildo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I don't have experience with &lt;SPAN&gt;MSXML2.XMLHTTP60&lt;/SPAN&gt;. See if this thread can help you:&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/page/2" target="_self"&gt;https://community.powerbi.com/t5/Developer/How-To-Get-embed-token-using-Get-Post-only/td-p/294475/page/2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 02:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Token-Access/m-p/2226711#M33338</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-12-08T02:53:19Z</dc:date>
    </item>
  </channel>
</rss>

