oAuth2 - Azure Dynamics

Posted by goo on 04-Oct-2019 11:08

12.0

https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-oauth2-client-creds-grant-flow

I am able to get the TOKEN, and within the token, I have the access_token.

To call the service api/bfo.no/api/incident/countries, I am adding a header, but my GET call result in error. When I do the same in postman, I get the result I need. When looking at fiddler4 I can see following

I am probably missing something, but as it works in postman, I can't understand why not in my procedure?

Posted by goo on 04-Oct-2019 11:16

Got it !!!!!

forgot this line:

   System.Net.ServicePointManager:SecurityProtocol = System.Net.SecurityProtocolType:Tls12.

All Replies

Posted by goo on 04-Oct-2019 11:16

Got it !!!!!

forgot this line:

   System.Net.ServicePointManager:SecurityProtocol = System.Net.SecurityProtocolType:Tls12.

This thread is closed