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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.