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

OAuth2 Authentication in PowerBI service

I'm trying to Authenticate API as part of Gateway cluster.

 

When I select "OAuth2"as authentication method, I don't find a way to pass "Access Token" in a way not even "Secret ID" and "Secret Token".

 

Am I missing something here. Any pointer or input is appreciated

123.png

 

error = "invalid_authorization_header, error_description="Invalid Authentication Data"

4 REPLIES 4
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

Maybe you can try edit credentails here.

vchenwuzmsft_0-1643969506465.png

Best Regards

Community Support Team _ chenwu zhu

 

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

JirkaZ
Solution Specialist
Solution Specialist

If you want to use an API in a proper way (including the OAuth flow etc.) you have to build a custom connector.

Anonymous
Not applicable

It's working fine in PowerBI Desktop.

We are facing issue to add "Web API" as a data source under Gateway. When we select "OAuth2" as Authentication Method, we don't find options to pass Authorization Details.

We have requirement to enable it in Service, as we have to refresh frequenctly and need to create Dataflow

JirkaZ
Solution Specialist
Solution Specialist

I'll just repeat myself - if you want to use an API requiring OAuth flow to authorize, you have to build a custom connector.

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.