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
tusharj
Microsoft Employee
Microsoft Employee

Getting oauth token in template app

Hi Folks,

I am trying to create a report with datasource being an api which needs oauth token. 

I am planning to publish this report as a template app in the appsource and that is when this app should ask for the some required parameters and ask for users org sign-in account get a token and than call the configured webapi with the token passed as header (typical auth rest api mechanism)

 

I want to know how can I get the oauthtoken in the report and refresh it?

Any pointers on this will be helpful.

Thanks

Tushar J

1 REPLY 1
RoRtm
Frequent Visitor

Hi

 

Same here.

We wrote an API serving data via REST to a PowerBI Template App. The API currently implements OpenID Connect (OIDC) connected to a KeyCloak server. Our idea is to have this API secured by using the OAuth option while configure the data sourcen in our template app.

Couldn't find any documentation for such a scenario.

 

Thank you

Roman

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.