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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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 carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.