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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
FrancescaBatt
Frequent Visitor

Custom connector Power Query Windows Authentication Options

Dear Forum members,

I'm developing a custom Power BI connector and I would like to know if it is possible to modify / customize the authentication options.

I would like to obtain two authentication:

- OAuth2 type, that takes in input two parameters clientid and clientsecret

FrancescaBatt_3-1668441702973.png

- Basic with username e password

FrancescaBatt_5-1668441935717.png

 

The problem is that I can not use the basic authentication twice and I wanted to take advantage of the Windows connection to have two parameters as input: but is it possible delete the options "Use my current credentials", "My alternate credentials" and show only Username and Password?

FrancescaBatt_0-1668441436914.png

 

 

Thank you!

4 REPLIES 4
rajulshah
Resident Rockstar
Resident Rockstar

@FrancescaBatt How did you get the label name to change to ClientId or ClientSecret in OAuth2?

Hi, you can refer to the documentation: Handling authentication for Power Query connectors - Power Query | Microsoft Learn. I only managed the possible labels indicated in the Authentication Kinds table.

For example for the Basic: UsernameLabel, PasswordLabel and Label.

I hope this works for you!

Regards

Francesca

FrancescaBatt
Frequent Visitor

Hi @v-jingzhang ,

Many thanks for your answer. 

 

Unfortunately we can't use the OAuth2 "standard" because our is not the authentication through authorization url and authorization_code as response.

We only need to ask for two parameters Client Id and Client Secret that are used to retrieve the token to be concatenated to web calls without Start Login and End Login process.

 

Is there a way to "skip" the method Start Login and End Login and ask directly for the client id and client secret for the OAuth2 authentication?

I think the only way is to customize the labels for the Basic Authentication.

 

Thank you very much

v-jingzhang
Community Support
Community Support

Hi @FrancescaBatt 

 

It seems not supported to delete the options of the Windows connection. You can only choose whether to pass values for the following labels of this connection. Handling authentication for Power Query connectors - Power Query

vjingzhang_0-1668503367616.png

 

If you want to build a custom connector that supports OAuth2, this blog might be helpful:

Building a custom connector for Power BI that supports OAuth2 to visualize my wellness data - Jussi ...

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

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.