<?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: Custom Connector: Data Refresh Issue with Expired Access Token (Multiple Calls to /Token Endpoin in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-Data-Refresh-Issue-with-Expired-Access-Token/m-p/3563911#M45596</link>
    <description>&lt;P&gt;If you have a Pro license you can open a Pro ticket at &lt;A href="https://admin.powerplatform.microsoft.com/newsupportticket/powerbi" target="_blank"&gt;https://admin.powerplatform.microsoft.com/newsupportticket/powerbi&lt;/A&gt;&lt;BR /&gt;Otherwise you can raise an issue at &lt;A href="https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues&lt;/A&gt; .&lt;/P&gt;</description>
    <pubDate>Sat, 02 Dec 2023 01:48:36 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-12-02T01:48:36Z</dc:date>
    <item>
      <title>Custom Connector: Data Refresh Issue with Expired Access Token (Multiple Calls to /Token Endpoint)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-Data-Refresh-Issue-with-Expired-Access-Token/m-p/3560518#M45559</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm currently developing a Custom Data Connector with the PKCE OAuth2 flow.&lt;BR /&gt;&lt;BR /&gt;We are having some strange issues during a data refresh when an expired access_token is provided.&lt;BR /&gt;&lt;BR /&gt;From Fiddler, we can see that the initial exchange for a new token occurs successfully. But shortly thereafter, multiple calls are made to the /token endpoint using the old refresh_token. It appears that the number of subsequent calls correlates to the number of queries/tables used.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeterPhrak_0-1701332950998.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1004436iE804F365A1735395/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PeterPhrak_0-1701332950998.png" alt="PeterPhrak_0-1701332950998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Other observations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Similarly, navigating to the Connector/Navigator window will correctly refresh the token too if the access_token&lt;/LI&gt;&lt;LI&gt;From the screenshot, you can see a successful call to the endpoint for that single thread.&lt;/LI&gt;&lt;LI&gt;From Power BI Desktop, the user will be presented the &lt;STRONG&gt;SignIn/Credentials &lt;/STRONG&gt;window with the error "The credentials provided are invalid" for every query in the refresh (if they selected cancel).&lt;/LI&gt;&lt;LI&gt;The subsequent data refresh will now work as the new tokens have been stored correctly from that first successful exchange.&lt;UL&gt;&lt;LI&gt;However this is not the case for when the on-premises gateway is used.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm wondering if this is a known bug?&lt;BR /&gt;&lt;BR /&gt;Our auth implementation is quite close to the sample: &lt;A href="https://github.com/microsoft/DataConnectors/tree/master/samples/OAuthPKCE" target="_blank" rel="noopener"&gt;https://github.com/microsoft/DataConnectors/tree/master/samples/OAuthPKCE&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Other reference with exact same issue, which seems unresolved.&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-failing-on-refreshing-data-with-multiple-calls/m-p/2608325" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-failing-on-refreshing-data-with-multiple-calls/m-p/2608325&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 08:38:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-Data-Refresh-Issue-with-Expired-Access-Token/m-p/3560518#M45559</guid>
      <dc:creator>PeterPhrak</dc:creator>
      <dc:date>2023-11-30T08:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector: Data Refresh Issue with Expired Access Token (Multiple Calls to /Token Endpoin</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-Data-Refresh-Issue-with-Expired-Access-Token/m-p/3563911#M45596</link>
      <description>&lt;P&gt;If you have a Pro license you can open a Pro ticket at &lt;A href="https://admin.powerplatform.microsoft.com/newsupportticket/powerbi" target="_blank"&gt;https://admin.powerplatform.microsoft.com/newsupportticket/powerbi&lt;/A&gt;&lt;BR /&gt;Otherwise you can raise an issue at &lt;A href="https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 01:48:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-Data-Refresh-Issue-with-Expired-Access-Token/m-p/3563911#M45596</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-02T01:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector: Data Refresh Issue with Expired Access Token (Multiple Calls to /Token Endpoin</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-Data-Refresh-Issue-with-Expired-Access-Token/m-p/3567409#M45644</link>
      <description>&lt;P&gt;Thank you that advice, Ibendlin. I've raised an issue with the link you have provided.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 01:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-Data-Refresh-Issue-with-Expired-Access-Token/m-p/3567409#M45644</guid>
      <dc:creator>PeterPhrak</dc:creator>
      <dc:date>2023-12-05T01:45:49Z</dc:date>
    </item>
  </channel>
</rss>

