Azure AD v2 Access Token Request Test Page


How to build an Azure AD 2.0 Access Token Request Test page?



The Access Token Request is the second call to the Azure AD service in the authentication code flow to retrieve the id_token with the authentication code received from the first call.

You can build a simple Web form page to test different behavior of the Access Token Request.

Here is an example, Azure-AD-2-Access-Token-Request-Test.html:

<html><body><h3>Azure AD OpenID Connect Access Token Test</h3>
<form method="POST" 
client_id: <input size="80" name="client_id"
code: <input name="code" size="80" 
redirect_uri: <input size="80" name="redirect_uri"
grant_type: <input name="grant_type" value="authorization_code"><br/>
client_secret: <input name="client_secret" value="JqQX2PNo9bpM0uEihUPzyrh"><br/>
<input type="Submit" name="Submit" value="Submit"><br/>

You can enter your own "client_id", "code", "redirect_uri" and other parameters to try it. Remember that "code" value must obtained by calling the authentication response.


Build Authorization Code Flow with Azure AD v2

Access Token Response Received from Azure AD v2

Azure AD Integration v2.0

⇑⇑ OpenID Tutorials

2019-03-27, 216👍, 0💬