<?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: When developing a custom data connector for a GraphQL API, are there any oAuth examples? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1805754#M29174</link>
    <description>&lt;P&gt;Where do I mark is as Answered?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 10:35:40 GMT</pubDate>
    <dc:creator>alexbjorlig</dc:creator>
    <dc:date>2021-04-26T10:35:40Z</dc:date>
    <item>
      <title>When developing a custom data connector for a GraphQL API, are there any oAuth examples?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1800150#M29130</link>
      <description>&lt;P&gt;I'm trying to develop a custom data connector that accesses a GraphQl API, using oAuth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first time it works great, I get a token and query data!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when the token expires, the API responds with the following payload:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "errors": [
    {
      "name": "GraphQLError",
      "message": "No valid session could be found, please reauthenticate",
      "path": [
        "roles"
      ],
      "code": "token-invalid",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ]
    }
  ],
  "data": null
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then nothing works - the refresh token apparently not being used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I tell the extensions oAuth package that it should retrive a new access_token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Alex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end I gave up and changed the GraphQl API to return statusCode 401 --&amp;gt; now it works.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 20:13:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1800150#M29130</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2021-04-22T20:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: When developing a custom data connector for a GraphQL API, are there any oAuth examples?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1804884#M29165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/204812"&gt;@alexbjorlig&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Is there anything else need to help with regarding this thread? If no, could you please mark your post as &lt;STRONG&gt;Answered&lt;/STRONG&gt;? It will help the others in the community find the solution easily when they face the same problem with you. Thank you.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 05:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1804884#M29165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-26T05:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: When developing a custom data connector for a GraphQL API, are there any oAuth examples?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1805754#M29174</link>
      <description>&lt;P&gt;Where do I mark is as Answered?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 10:35:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1805754#M29174</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2021-04-26T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: When developing a custom data connector for a GraphQL API, are there any oAuth examples?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1807411#M29189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/204812"&gt;@alexbjorlig&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;You can click the button "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" under the helpful post to mark it as Answered.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1619488732877.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/502386iF9F804F8D36A0F0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yingyinr_0-1619488732877.png" alt="yingyinr_0-1619488732877.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 01:59:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/When-developing-a-custom-data-connector-for-a-GraphQL-API-are/m-p/1807411#M29189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-27T01:59:32Z</dc:date>
    </item>
  </channel>
</rss>

