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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
BenFord
Frequent Visitor

OAuth custom connector

I have created a custom data connector to an OData api.  The API uses Oauth2 and the connector is configured to do that as well.  It works from the power query SDk in visual studio, works from desktop.  I now am deploying it on our power bi gataway, and the gateway is able to load it.  I also successfully created a data source on the gateway that uses this connector.  however, when i try to use it in a dataflow, i get the enter credentials dialog.  it has selected to use the correct gateway, but when i click the sign in button i get the message below.  I noticed also that when i click the sign in button here, i am directed to a different uri then i am in sdk or in desktop. Any help is appreciated.

 Screenshot 2022-04-22 141258.jpg

2 REPLIES 2
Anonymous
Not applicable

Hi @BenFord ,

 

OAuth for custom connectors via gateways is currently supported only for gateway admins but not other data source users.

The method for implementing TestConnection functionality is likely to change while the Power BI Custom Data Connector functionality is in preview.

To support scheduled refresh through the on-premises data gateway, your connector must implement a TestConnection handler.

For more details, please check this document.

https://docs.microsoft.com/en-us/power-query/handlinggatewaysupport 

 

Best Regards,

Jay

My custom connector has a test connection method and I am able to add it to the gateway and the connection is successful there.  It is just when i try to use it in a dataflow that i am getting the above issue.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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