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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.