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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mattia_b
Frequent Visitor

get access token from credentials by Rest request

I'm trying to get the access token to attach to all the other request, what i want to know is how to call the authorization server for retrive a new Bearer token, In other words the equivalent of the following code using the rest api instead:


var autenticationContext = new AuthenticationContext(Config.my.PB_AutorityURL());
var credential = new UserPasswordCredential(Config.my.PB_Username(), Config.my.PB_Password());
var authResult = autenticationContext.AcquireTokenAsync(Config.my.PB_ResourceURL(), Config.my.PB_AppID(), credential).Result 

 

Thanks for your attention

1 ACCEPTED SOLUTION
Jayendran
Solution Sage
Solution Sage

Hi @mattia_b 

 

Try the below image

 

Capture.JPG

View solution in original post

1 REPLY 1
Jayendran
Solution Sage
Solution Sage

Hi @mattia_b 

 

Try the below image

 

Capture.JPG

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.