<?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 Custom API keeps asking for authentication in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-API-keeps-asking-for-authentication/m-p/4004237#M53556</link>
    <description>&lt;P&gt;I have an API using the following M query to implement an authentication using headers, api key &amp;amp; token.&lt;BR /&gt;&lt;BR /&gt;let&lt;BR /&gt;// Define the API URL for data retrieval&lt;BR /&gt;apiUrl = "&lt;A href="https://app.test.com/MyList" target="_blank" rel="noopener"&gt;https://app.test.com/MyList&lt;/A&gt;",&lt;BR /&gt;&lt;BR /&gt;// Define headers with x-api-key and x-token&lt;BR /&gt;headers = [&lt;BR /&gt;#"x-api-key" = "your_api_key_value",&lt;BR /&gt;#"x-token" = "your_token"&lt;BR /&gt;],&lt;BR /&gt;&lt;BR /&gt;// Make the GET request with headers&lt;BR /&gt;response = Web.Contents(apiUrl, [Headers=headers]),&lt;BR /&gt;jsonResponse = Json.Document(response)&lt;BR /&gt;in&lt;BR /&gt;jsonResponse&lt;BR /&gt;&lt;BR /&gt;And I want to authenticate anonimously because I user headers and I can not. It keeps asking for authentication. My API also connects with a username and password or with API key. But none of them seem to work. It always keep asking for authentication.&lt;BR /&gt;&lt;BR /&gt;Any clue on the issue or hint for the approach?&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Nick&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 14:07:04 GMT</pubDate>
    <dc:creator>nf_protogramma</dc:creator>
    <dc:date>2024-06-21T14:07:04Z</dc:date>
    <item>
      <title>Custom API keeps asking for authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-API-keeps-asking-for-authentication/m-p/4004237#M53556</link>
      <description>&lt;P&gt;I have an API using the following M query to implement an authentication using headers, api key &amp;amp; token.&lt;BR /&gt;&lt;BR /&gt;let&lt;BR /&gt;// Define the API URL for data retrieval&lt;BR /&gt;apiUrl = "&lt;A href="https://app.test.com/MyList" target="_blank" rel="noopener"&gt;https://app.test.com/MyList&lt;/A&gt;",&lt;BR /&gt;&lt;BR /&gt;// Define headers with x-api-key and x-token&lt;BR /&gt;headers = [&lt;BR /&gt;#"x-api-key" = "your_api_key_value",&lt;BR /&gt;#"x-token" = "your_token"&lt;BR /&gt;],&lt;BR /&gt;&lt;BR /&gt;// Make the GET request with headers&lt;BR /&gt;response = Web.Contents(apiUrl, [Headers=headers]),&lt;BR /&gt;jsonResponse = Json.Document(response)&lt;BR /&gt;in&lt;BR /&gt;jsonResponse&lt;BR /&gt;&lt;BR /&gt;And I want to authenticate anonimously because I user headers and I can not. It keeps asking for authentication. My API also connects with a username and password or with API key. But none of them seem to work. It always keep asking for authentication.&lt;BR /&gt;&lt;BR /&gt;Any clue on the issue or hint for the approach?&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Nick&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 14:07:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-API-keeps-asking-for-authentication/m-p/4004237#M53556</guid>
      <dc:creator>nf_protogramma</dc:creator>
      <dc:date>2024-06-21T14:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom API keeps asking for authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-API-keeps-asking-for-authentication/m-p/4006503#M53659</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/473367"&gt;@nf_protogramma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Base on your description, it&amp;nbsp;&lt;SPAN&gt;sounds like you're trying to make a web request in Power Query (M language) and encountering issues with the authentication prompt. Please try to set&amp;nbsp;Anonymous authentication and check if it can resolve the problem:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Go to '&lt;/SPAN&gt;&lt;SPAN&gt;File' &amp;gt; 'Options and settings' &amp;gt; 'Data Source Settings'&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt; Find the data source (your API URL) and select it&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt; Click on 'Clear Permissions'&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Try to reconnect and, when prompted, choose '&lt;STRONG&gt;Anonymous&lt;/STRONG&gt;' access&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1719217559256.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1121042iBD39C9D099CE5B0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1719217559256.png" alt="vyiruanmsft_0-1719217559256.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 08:26:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-API-keeps-asking-for-authentication/m-p/4006503#M53659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T08:26:35Z</dc:date>
    </item>
  </channel>
</rss>

