I am trying to Get access token from Azure AD. For that I have performed below Steps
1) Created an Enterprise application on Azure Active Directory
2) I am able to get the Access token using Authorisation --->> 'Get New Access token'
3) Hit the 'POST' request for https://login.microsoftonline.com/<Application ID>/oauth2/token
URL
Have Configured below for POST Body
ClientID is ApplicationID from Application created at 1st step
Code is Also ApplicationID from Application created at 1st step
Not sure if I have configured it correctly
4) Using Same access code when I try to send an Request I am getting below error response
`{
"error": "invalid_grant",
"error_description": "AADSTS9002313: Invalid request. Request is malformed or invalid.\r\nTrace ID: 60b8fb68-40d5-43da-9b7b-36de021c2900\r\nCorrelation ID: 90ed2f2c-1ac8-4044-8742-493a3fce51be\r\nTimestamp: 2019-07-03 12:42:32Z",
"error_codes": [
9002313
],
"timestamp": "2019-07-03 12:42:32Z",
"trace_id": "60b8fb68-40d5-43da-9b7b-36de021c2900",
"correlation_id": "90ed2f2c-1ac8-4044-8742-493a3fce51be"
}
Please let me know where I am wrong or something needs to be changed.