[Solved] Get the access token in asp.net web forms


I’ve done related code sample before in a web forms application , but you should firstly understand how authorization code flow works in AAD . After that , you could click here for code sample . And you will find in my code i use ADAL to get the access token using the authorization code . What you need to do is that modify the AcquireTokenWithResource function by :

  1. prepare the request parameters and sending a POST request to the /token endpoint.
  2. Deserialize the json result and get the access token . You could use Newtonsoft.Json library .

Any problem during coding , please feel free to let me know .

1

solved Get the access token in asp.net web forms