<?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 Access Token not working when trying to Authenticate REST API's as well as embedding of reports. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Access-Token-not-working-when-trying-to-Authenticate-REST-API-s/m-p/3251250#M42805</link>
    <description>&lt;P&gt;We are trying to authenticate our REST API's with the ACCESS TOKEN retrieved from the oauth2 api but it is not working. Postman screen snippet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vericred_0-1684936161379.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/919410iC9EE341AD63B035C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vericred_0-1684936161379.png" alt="vericred_0-1684936161379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The token is retrieved however if you investigate that token there is nothing in it so using it leads to 401 - UNAUTHORISED response every single time on other REST API's and embedding asks to login again regardless of the token provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We followed the documentation and created the application and secrets etc. and added the permissions:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vericred_1-1684936355945.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/919417iB2AFA2D6D72BB3FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vericred_1-1684936355945.png" alt="vericred_1-1684936355945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our system admin says our user is correctly set up but it seems there is a setting or something missing causing the token not to work.&lt;/P&gt;&lt;P&gt;This is our first time integrating with AZURE / PowerBI so bare with the cluelessness and be so kind as to redirect us to possible solutions.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 13:54:46 GMT</pubDate>
    <dc:creator>vericred</dc:creator>
    <dc:date>2023-05-24T13:54:46Z</dc:date>
    <item>
      <title>Access Token not working when trying to Authenticate REST API's as well as embedding of reports.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Token-not-working-when-trying-to-Authenticate-REST-API-s/m-p/3251250#M42805</link>
      <description>&lt;P&gt;We are trying to authenticate our REST API's with the ACCESS TOKEN retrieved from the oauth2 api but it is not working. Postman screen snippet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vericred_0-1684936161379.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/919410iC9EE341AD63B035C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vericred_0-1684936161379.png" alt="vericred_0-1684936161379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The token is retrieved however if you investigate that token there is nothing in it so using it leads to 401 - UNAUTHORISED response every single time on other REST API's and embedding asks to login again regardless of the token provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We followed the documentation and created the application and secrets etc. and added the permissions:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vericred_1-1684936355945.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/919417iB2AFA2D6D72BB3FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vericred_1-1684936355945.png" alt="vericred_1-1684936355945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our system admin says our user is correctly set up but it seems there is a setting or something missing causing the token not to work.&lt;/P&gt;&lt;P&gt;This is our first time integrating with AZURE / PowerBI so bare with the cluelessness and be so kind as to redirect us to possible solutions.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 13:54:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Token-not-working-when-trying-to-Authenticate-REST-API-s/m-p/3251250#M42805</guid>
      <dc:creator>vericred</dc:creator>
      <dc:date>2023-05-24T13:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access Token not working when trying to Authenticate REST API's as well as embedding of reports.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Token-not-working-when-trying-to-Authenticate-REST-API-s/m-p/3252837#M42824</link>
      <description>&lt;P&gt;Hoping someone from Microsoft can provide an official response.&amp;nbsp; I have followed the Microsoft documentation and also have the same issue.&amp;nbsp; Appears as though others in the forum also have the same issue.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Ben.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:48:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Token-not-working-when-trying-to-Authenticate-REST-API-s/m-p/3252837#M42824</guid>
      <dc:creator>bhalicki</dc:creator>
      <dc:date>2023-05-25T08:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Access Token not working when trying to Authenticate REST API's as well as embedding of reports.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Token-not-working-when-trying-to-Authenticate-REST-API-s/m-p/3256024#M42846</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/561372"&gt;@vericred&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;Try going into the PowerBi admin centre and enable 'Allow service princples to use Power BI APIs'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhalicki_0-1685142050411.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/920737i04E33197C5D90A43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhalicki_0-1685142050411.png" alt="bhalicki_0-1685142050411.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think the best approach would be to create a security group and only give access to certain users, but enabling the above option I was able to get around the 401 - Unauthorized issue.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Ben.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 23:01:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Token-not-working-when-trying-to-Authenticate-REST-API-s/m-p/3256024#M42846</guid>
      <dc:creator>bhalicki</dc:creator>
      <dc:date>2023-05-26T23:01:29Z</dc:date>
    </item>
  </channel>
</rss>

