I am unable to get access token from the microsoft active directory graph api.

ahmad nawaz 1 Reputation point
2021-07-06T10:25:30.887+00:00

Here is my postman screenshot.

112118-postman.png

In response, I am getting a sign-in form. I saved the response in HTML file and it opens like this.

112069-screenshot-from-2021-07-06-15-00-14.png

My requirements are simple.

I need to call https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize to get the code that is necessary for getting the token.

Then I want to call {tenant}/oauth2/v2.0/token to get the access token

Then I want to call /oidc/userinfo to get the users of AD.

Is anything I am doing wrong?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    10 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.