Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
UserBUG
Regular Visitor

How to get live data from a REST API requiring OAuth 1.0 authentication?

This question does not pertain to Power Bi Desktop, where most authentication methods can be replicated in Power Query.
The question pertains to Power Bi Online where I would like to pull data from a REST API which requires OAuth 1.0 authentication, something I cannot find in the gateway settings.
What is your recommended approach to pull data from a REST API requiring OAuth 1.0 authentication live every time a user loads or refreshes the Power Bi report?
6 REPLIES 6
v-yuezhe-msft
Employee
Employee

@UserBUG ,

You are able to use in OAuth 1.0 authentication in Power Query or Power BI Desktop.

https://www.kasperonbi.com/getting-data-into-power-query-with-the-twitter-search-api-how-to-hack-pq-...

Based on your description, do you want to add the project online data source within on-premises gateway and refresh your dataset in Power BI Service? If that is the case, as you are connecting to online data source(Project Online), gateway is not required to refresh your dataset. Go to Settings->Datasets and find your dataset , you should find that Power BI Service connect directly to your data source, after you edit the credential for your data source, you are able to set schedule refresh for the dataset.



Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for your feedback, Lydia!

 

Said approach would require to refresh data continuously through Power Bi Desktop, though.

My intention is to publish the report (via iFrame) to users (without any Power Bi Desktop).

For that purpose, the report needs to be refreshed online whenever a user access it or on a scheduled basis (at least every 15 minutes).

How would I go about it in this case?

@UserBUG,

After you publish PBIX file  to Power BI Service, you can set schedule refresh for your dataset. To schedule data at least every 15 minutes, you can purchase Power BI premium, otherwise, you are limited to refresh datasets up to 8 times a day.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear Lydia,

 

That won't work work with OAuth 1 which requires a logic in the Web Requests, specifically a new Timestamp and Nonce for every call.

Can you confirm that Refresh works with Web Queries with OAuth 1?

 

Best regards,

 

Gabriel

hi Gabriel, have you had the solution yet? I am also planning to connect Power Bi with LivePerson Rest APIs using OAuth 1.0, is this possible?

No solution to date. I'm currently looking into other BI solutions with OAuth 1.0 built in. I like the Power Bi visuals more, but guess Web Service Requests are limited to OAuth 2.0 and Basic.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors