<?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: Azure AD authorization in OData data source: published report refresh problem in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/1898948#M29969</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thanks for your reply, I've worked through these posts and got the following result:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Authentication via Postman/Insomnia works as expected.&lt;/LI&gt;&lt;LI&gt;Authentication via Power BI Desktop works as expected.&lt;/LI&gt;&lt;LI&gt;Authentication via app.powerbi.com fails with the same error as in my original post. Credentials are&amp;nbsp; the same as in the PBI Desktop connection.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is there a way to debug or have a detailed log of the app.powerbi.com data source connection attempts?&amp;nbsp;I guess that the error shown has no relation to an actual token refresh - as the data source connection never gets authorized, and the odata service never receives a request. Unfortunately I have no clue how to debug the app.powerbi.com-platform, nor do I know how to do this in the Azure portal. It would be really useful to know what the auth-request from app.powerbi.com to Azure AD looks like.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 13:03:17 GMT</pubDate>
    <dc:creator>AuRo</dc:creator>
    <dc:date>2021-06-14T13:03:17Z</dc:date>
    <item>
      <title>Azure AD authorization in OData data source: published report refresh problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/1893896#M29886</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;my company has a self-developed and self-hosted OData service (asp.net core 5 odata), which uses Azure AD authentication. We need to use the data delivered by the web service in our PBI-Dashboards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to get it working in the PBI desktop application by following the answer in this SO-Problem (&lt;A href="https://stackoverflow.com/questions/42512863/power-query-powerbi-connecting-to-custom-odata-feed-secured-with-aad/42513455#42513455" target="_blank" rel="noopener"&gt;c# - Power Query/PowerBI connecting to Custom oDATA feed secured with AAD - Stack Overflow).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But now after publishing the PBI I'm getting the following error when refreshing the data source online:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AuRo_0-1623338383044.png" style="width: 901px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/531585i3CCC6567ECFCF616/image-dimensions/901x135?v=v2" width="901" height="135" role="button" title="AuRo_0-1623338383044.png" alt="AuRo_0-1623338383044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;Last refresh failed: Thu Jun 10 2021 16:43:07 GMT+0200&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;It looks like the refresh token expired. Please go to this dataset's settings page, and reenter the OAuth2 credentials for the OData data source.&lt;/EM&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;Underlying error message:&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;AADSTS70000: Provided grant is invalid or malformed. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;Trace ID: ...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;Correlation ID: ...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;Timestamp: 2021-06-10 14:43:07Z. &lt;A href="https://login.windows.net/error?code=70000" target="_blank" rel="noopener"&gt;https://login.windows.net/error?code=7000&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The message confuses me, as a refresh token should not be present (or even expired) here at all. And the&amp;nbsp;&lt;SPAN&gt;AADSTS70000 code gets me nowhere tbh. I guess that I have a wrong or missing setting in the app registration in Azure, but I have no idea what or where to look. So any help would be much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What i tried so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In Azure Portal:&lt;UL&gt;&lt;LI&gt;added the custom scope "user_impersonation" to the app registration&lt;/LI&gt;&lt;LI&gt;added the OData-Service-Url to the identifierUris-Array in the Manifest, so there's now 2 uris (&lt;A href="https://odata-feed-url.com" target="_blank" rel="noopener"&gt;https://odata-feed-url.com&lt;/A&gt; and api:// 123812a1-1234-1234-aed0-29f21ffbf044)&lt;/LI&gt;&lt;LI&gt;added&amp;nbsp;&lt;A href="https://preview.powerbi.com/" target="_blank" rel="noopener"&gt;https://preview.powerbi.com/&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://preview.powerbi.com/views/oauthredirect.html" target="_blank" rel="noopener"&gt;https://preview.powerbi.com/views/oauthredirect.html&lt;/A&gt;&amp;nbsp;as redirect&amp;nbsp; URIs to the app registration (but this had no effect)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;In OData service:&lt;UL&gt;&lt;LI&gt;for all incoming HTTP-requests with an empty Bearer-Authorization Header, a 401-response with a "WWW-Authenticate"-Header with the value '&lt;EM&gt;Bearer realm="" authorization_uri="&lt;/EM&gt;&lt;EM&gt;&lt;A href="https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorize" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/{company-tenant-id}/oauth2/v2.0/authorize&lt;/A&gt;"' is sent&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 10 Jun 2021 15:26:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/1893896#M29886</guid>
      <dc:creator>AuRo</dc:creator>
      <dc:date>2021-06-10T15:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AD authorization in OData data source: published report refresh problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/1898617#M29965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/306717"&gt;@AuRo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please review the content in the following links, hope they can help you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/56264802/azure-graph-api-2-0-error-in-refreshing-token-provided-grant-is-invalid-or-malf" target="_self"&gt;&lt;STRONG&gt;Azure Graph API 2.0 error in refreshing token: Provided grant is invalid or malformed (AADSTS70000)&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/27998665/invalid-grant-when-trying-to-get-token-for-azure-ad-graph-api" target="_self"&gt;&lt;STRONG&gt;invalid grant when trying to get token for azure AD graph api&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 10:22:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/1898617#M29965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-14T10:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AD authorization in OData data source: published report refresh problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/1898948#M29969</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thanks for your reply, I've worked through these posts and got the following result:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Authentication via Postman/Insomnia works as expected.&lt;/LI&gt;&lt;LI&gt;Authentication via Power BI Desktop works as expected.&lt;/LI&gt;&lt;LI&gt;Authentication via app.powerbi.com fails with the same error as in my original post. Credentials are&amp;nbsp; the same as in the PBI Desktop connection.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is there a way to debug or have a detailed log of the app.powerbi.com data source connection attempts?&amp;nbsp;I guess that the error shown has no relation to an actual token refresh - as the data source connection never gets authorized, and the odata service never receives a request. Unfortunately I have no clue how to debug the app.powerbi.com-platform, nor do I know how to do this in the Azure portal. It would be really useful to know what the auth-request from app.powerbi.com to Azure AD looks like.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/1898948#M29969</guid>
      <dc:creator>AuRo</dc:creator>
      <dc:date>2021-06-14T13:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AD authorization in OData data source: published report refresh problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/2223980#M33324</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/306717"&gt;@AuRo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Any luck in resolving this?&amp;nbsp; We are getting the same error on power bi cloud and power bi desktop works perfectly fine (noting desktop is using Power Query for excel (&lt;SPAN&gt;a672d62c-fc7b-4e81-a576-e60dc46e951d&lt;/SPAN&gt;).&lt;BR /&gt;&lt;BR /&gt;When we deploy to power bi cloud and use power bi data refresh (&lt;SPAN&gt;b52893c8-bc2e-47fc-918b-77022b299bbc&lt;/SPAN&gt;) we have this issue!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 23:49:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Azure-AD-authorization-in-OData-data-source-published-report/m-p/2223980#M33324</guid>
      <dc:creator>pbiOrgUser</dc:creator>
      <dc:date>2021-12-06T23:49:14Z</dc:date>
    </item>
  </channel>
</rss>

