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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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

Community Support
Community Support

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. 


Best Regards,


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

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors