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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
RuiPatricio
Frequent Visitor

Authentication to a REST API

I have a REST api that is secured with a Bearer token provided by MS Graph/AzureAD. 

I did some testing by hard-coding the bearer token into my query and it works. 

 

My question is: 

Is there a method for me to sign-in when I do a refresh so I can get a valid token?

I think, ideally, I would like the default sign-in page from login.microsoft.com to come up when I atttempt to sign-in (thus supporting MFA), but I'm open to suggestions. 

 

1 REPLY 1
lbendlin
Super User
Super User

That's a question between you and the API provider.  Are you on a company AAD? Have you considered writing a custom connector?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.