AADSTS9002313: Invalid request when trying to get auth tokens via Postman

Luo, Xinjie 1 Reputation point
2021-05-05T07:19:08.3+00:00

Dear Madam/Sir,

I'm currently trying to to use Microsoft Graph to read and write Emails on behalf of a user by following this documentation:

https://learn.microsoft.com/en-us/graph/auth-v2-user#3-get-a-token

But I couldn't continue as I retrieve constantly this error while getting a token

{"error":"invalid_grant","error_description":"AADSTS9002313: Invalid request. Request is malformed or invalid.\r\nTrace ID: 3765634b-7e56-4e17-b8ba-2fa8b7057c01\r\nCorrelation ID: 6f72db61-e14a-486f-b972-8a0c4600dbd2\r\nTimestamp: 2021-05-05 07:01:02Z","error_codes":[9002313],"timestamp":"2021-05-05 07:01:02Z","trace_id":"3765634b-7e56-4e17-b8ba-2fa8b7057c01","correlation_id":"6f72db61-e14a-486f-b972-8a0c4600dbd2","error_uri":"https://login.microsoftonline.com/error?code=9002313"}  

Here is a screeshot of my Postman entries:
Body
93827-93843-image.png

Header
93901-93852-image.png

Thanks for the help in advance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,518 questions
{count} votes