cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mattia_b Frequent Visitor
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

Accepted Solutions
Jayendran Established Member
Established Member

Re: get access token from credentials by Rest request

Hi @mattia_b 

 

Try the below image

 

Capture.JPG

View solution in original post

1 REPLY 1
Jayendran Established Member
Established Member

Re: get access token from credentials by Rest request

Hi @mattia_b 

 

Try the below image

 

Capture.JPG

View solution in original post

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (1,204)