<?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: Connecting from power BI to rest API with Oath2 authentication in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2246305#M33532</link>
    <description>&lt;P&gt;I have tried building one but am not a developer and it is quite frustrating. Can someone just build one and publish it? I know there is an issue that PowerBI cannot deal with Secrets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This person has built one for OuraCloud, can someone do the same for AzureAD.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://jussiroine.com/2019/02/building-a-custom-connector-for-power-bi-that-supports-oauth2-to-visualize-my-wellness-data/" target="_blank"&gt;Building a custom connector for Power BI that supports OAuth2 to visualize my wellness data - Jussi Roine&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/jussiroine/OuraCloudConnector/blob/master/OuraCloudConnector/OuraCloudConnector.pq" target="_blank"&gt;OuraCloudConnector/OuraCloudConnector.pq at master · jussiroine/OuraCloudConnector · GitHub&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here was my stumbling path BEFORE I even got to developing, where once again, I realise I am not a developer. This was over 2 hours of just plain annoying documentation from Microsoft.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;OL&gt;&lt;LI&gt;View Power Query SDK page - Need Visual Studio&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Install Visual Studio - 2022 Community&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;FAIL Power Query SDK will not install&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Research - PQ SDK only supports VS 2019&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Install Visual Studio - 2019 Community&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;FAIL Cannot create project - Missing File&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Research - Need any workflow - Apparently according to one page&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Install Python extension - Smallest&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;FAIL - Cannot create Project - Something something Folder, Roslyn&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Install another extension, .NET, C# and others&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp;SUCCESS: Can now create a new Connection project&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Maybe the SDK page could say "Does not support 2022 - Install older VS version" and list what is needed to actually MAKE A **bleep** PROJECT.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;SDK page: &lt;A href="https://marketplace.visualstudio.com/items?itemName=Dakahn.PowerQuerySDK" target="_blank"&gt;https://marketplace.visualstudio.com/items?itemName=Dakahn.PowerQuerySDK&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MS Docs: &lt;A href="https://docs.microsoft.com/en-us/power-query/installingsdk" target="_blank"&gt;https://docs.microsoft.com/en-us/power-query/installingsdk&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 19 Dec 2021 19:39:57 GMT</pubDate>
    <dc:creator>GavinJolly</dc:creator>
    <dc:date>2021-12-19T19:39:57Z</dc:date>
    <item>
      <title>Connecting from power BI to rest API with Oath2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2221523#M33292</link>
      <description>&lt;UL&gt;&lt;LI&gt;Can someone provide a sample power bi project for connecting power Bi to rest API using Oath2 authorisation.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 22:04:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2221523#M33292</guid>
      <dc:creator>Indrasena</dc:creator>
      <dc:date>2021-12-05T22:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from power BI to rest API with Oath2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2222340#M33302</link>
      <description>&lt;P&gt;If you want to publish the report, there is no solution probably at the moment i have the same problem.&lt;/P&gt;&lt;P&gt;Service provides basic authentication.&lt;/P&gt;&lt;P&gt;In desktop you can easily in one query make the first call to the login to get the token and then pass the token to the second call as authorization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;body = "{"if it is required for the sign in or you 
            need to put somehow user and pass for sign in"}",
    
Data= Web.Contents("https://your.sign.in.api",
                            [Content=Text.ToBinary(body),
                             Headers=[#"Content-Type"="application/json"]]),  
DataRecord = Json.Document(Data) ,  
token=DataRecord[data],
    
Source = Json.Document(Web.Contents("https://your.rest.api", 
                                    [Headers=[#"type"="application_auth",
                                              #"Authorization"="Bearer "&amp;amp;token]])),&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Dec 2021 08:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2222340#M33302</guid>
      <dc:creator>kyrpav</dc:creator>
      <dc:date>2021-12-06T08:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from power BI to rest API with Oath2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2222394#M33304</link>
      <description>&lt;P&gt;Is there any step by step guide like below, i am trying it for the first time as i dont have any idea on Oath2 and API authorisation,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.myonlinetraininghub.com/connecting-to-an-oauth-api-like-paypal-with-power-query" target="_blank"&gt;https://www.myonlinetraininghub.com/connecting-to-an-oauth-api-like-paypal-with-power-query&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be a great help if i can get some exact snippet M code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 08:44:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2222394#M33304</guid>
      <dc:creator>Indrasena</dc:creator>
      <dc:date>2021-12-06T08:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from power BI to rest API with Oath2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2237665#M33437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/324366"&gt;@Indrasena&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to connect from Power BI to a REST API that uses OAuth2 authentication then you need to build a&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-query/startingtodevelopcustomconnectors" target="_blank"&gt;custom connector&lt;/A&gt;. You can find documentation on how to implement an OAuth2 flow in a custom connector&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-query/handlingauthentication#implementing-an-oauth-flow" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://blog.crossjoin.co.uk/2021/08/29/connecting-to-rest-apis-with-oauth2-authentication-in-power-query-power-bi/" target="_self"&gt;Connecting To REST APIs With OAuth2 Authentication In Power Query/Power BI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 10:02:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2237665#M33437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-14T10:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from power BI to rest API with Oath2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2246258#M33531</link>
      <description>&lt;P&gt;Please find the below snippet code and need some inputs for looping,triggering the web api and store each response as record.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Indrasena_0-1639937550193.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/646039iDB9E19B6B08875F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Indrasena_0-1639937550193.png" alt="Indrasena_0-1639937550193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 18:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2246258#M33531</guid>
      <dc:creator>Indrasena</dc:creator>
      <dc:date>2021-12-19T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from power BI to rest API with Oath2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2246305#M33532</link>
      <description>&lt;P&gt;I have tried building one but am not a developer and it is quite frustrating. Can someone just build one and publish it? I know there is an issue that PowerBI cannot deal with Secrets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This person has built one for OuraCloud, can someone do the same for AzureAD.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://jussiroine.com/2019/02/building-a-custom-connector-for-power-bi-that-supports-oauth2-to-visualize-my-wellness-data/" target="_blank"&gt;Building a custom connector for Power BI that supports OAuth2 to visualize my wellness data - Jussi Roine&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/jussiroine/OuraCloudConnector/blob/master/OuraCloudConnector/OuraCloudConnector.pq" target="_blank"&gt;OuraCloudConnector/OuraCloudConnector.pq at master · jussiroine/OuraCloudConnector · GitHub&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here was my stumbling path BEFORE I even got to developing, where once again, I realise I am not a developer. This was over 2 hours of just plain annoying documentation from Microsoft.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;OL&gt;&lt;LI&gt;View Power Query SDK page - Need Visual Studio&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Install Visual Studio - 2022 Community&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;FAIL Power Query SDK will not install&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Research - PQ SDK only supports VS 2019&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Install Visual Studio - 2019 Community&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;FAIL Cannot create project - Missing File&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Research - Need any workflow - Apparently according to one page&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Install Python extension - Smallest&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;FAIL - Cannot create Project - Something something Folder, Roslyn&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Install another extension, .NET, C# and others&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp;SUCCESS: Can now create a new Connection project&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Maybe the SDK page could say "Does not support 2022 - Install older VS version" and list what is needed to actually MAKE A **bleep** PROJECT.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;SDK page: &lt;A href="https://marketplace.visualstudio.com/items?itemName=Dakahn.PowerQuerySDK" target="_blank"&gt;https://marketplace.visualstudio.com/items?itemName=Dakahn.PowerQuerySDK&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MS Docs: &lt;A href="https://docs.microsoft.com/en-us/power-query/installingsdk" target="_blank"&gt;https://docs.microsoft.com/en-us/power-query/installingsdk&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Dec 2021 19:39:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/2246305#M33532</guid>
      <dc:creator>GavinJolly</dc:creator>
      <dc:date>2021-12-19T19:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from power BI to rest API with Oath2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/3704445#M49590</link>
      <description>&lt;P&gt;I came across the same requirement and the solution in below link worked for me. Document was very clear and explained step by step in detail.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.advaiya.com/generate-dynamic-token-and-get-data-from-custom-api-in-power-bi/" target="_blank"&gt;https://www.advaiya.com/generate-dynamic-token-and-get-data-from-custom-api-in-power-bi/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 16:27:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/3704445#M49590</guid>
      <dc:creator>Sarath_babu2</dc:creator>
      <dc:date>2024-02-16T16:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from power BI to rest API with Oath2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/4016358#M53790</link>
      <description>&lt;P&gt;I was also puzzled that the Web API connector in Power BI still does not support oAuth2.0. I wonder if anyone has developed a custom connector and made available to the public?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently even Google Spreadsheets&amp;nbsp; third party tools for API ingestion offer support for oAuth 2.0, why not&amp;nbsp; Power BI?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been googling for 2 days and the status is still the same:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For stopping the frustration, Chris Webbs article is still the best ressource.&lt;/LI&gt;&lt;LI&gt;If you have the access token, you can use Power Query to get the data, but (in most cases) you will not be able to request the access token within Power BI.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2024 04:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-from-power-BI-to-rest-API-with-Oath2-authentication/m-p/4016358#M53790</guid>
      <dc:creator>WanderingBI</dc:creator>
      <dc:date>2024-06-29T04:19:34Z</dc:date>
    </item>
  </channel>
</rss>

