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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Data Source Credential error upon using OAuth 2.0 to Refresh Kusto data

I made a powerbi report that I published to the service with success. 

To schedule refresh on Power BI service, I use OAuth2. When I enter my credentials, I get two errors:

 1.  You need to use SSL (HTTPS) when you use OAuth 2.0 authentication.         

 2.  Message: AADSTS90015: Requested query string is too long. 

 

Everything works great on Power BI Desktop. 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Did you notice that I used a Kusto connector while you used a Web connector? Please try again with the Kusto connector. Please refer to the snapshot below.

Data-Source-Credential-error-upon-using-OAuth-2-0-to-Refresh-Kusto-data

 

Best Regards,
Dale

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

View solution in original post

5 REPLIES 5
YohanEisenbah
New Member

I was coming across the message “You need to use SSL (HTTPS) when you use OAuth 2.0 authentication”. I resolved the issue by following these steps:

  1. Make sure that your browser allows pop-ups.
  2. If you're not using Microsoft Edge and the error persists after enabling pop-ups, consider switching to Microsoft Edge.

I found this helpful checklist here: link.

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

I set it up and refreshed successfully. I would suggest you make changes to your data source as the error message guided. The connection string could be like this: https://kkkkkkk.kusto.kkkkkk.net:443. The point is 443, which means the connection is encrypted.

Data-Source-Credential-error-upon-using-OAuth-2-0-to-Refresh-Kusto-data

 

Best Regards,
Dale

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

DATAREFRESH.PNG

 

what type of changes should I make? I don't really understand your recommendation.

this is my connection string : https://kkkkkkk.kusto.kkkkkk.net:443/v1/rest/query?db/kkkkkkkkkkk&csl=.show version.OATH-PBI.PNG

 

 

This is the error I get when i try to edit credentials. 

Hi @Anonymous,

 

Did you notice that I used a Kusto connector while you used a Web connector? Please try again with the Kusto connector. Please refer to the snapshot below.

Data-Source-Credential-error-upon-using-OAuth-2-0-to-Refresh-Kusto-data

 

Best Regards,
Dale

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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