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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors