Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,903 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Trying to get Access token but getting below error, i am using PHP not sure what is missing here
`400 Bad Request` response:
{"error":"invalid_grant","error_description":"AADSTS9002313: Invalid request. Request is malformed or invalid. Trace ID: (truncated...)
Response: {"error":"invalid_grant","error_description":"AADSTS9002313: Invalid request. Request is malformed or invalid. Trace ID: a8c86f68-3898-41e6-8186-89e89b0c2800 Correlation ID: c51bf928-659d-49a7-aabe-8e6d184481e7 Timestamp: 2024-09-20 12:50:01Z","error_codes":[9002313],"timestamp":"2024-09-20 12:50:01Z","trace_id":"a8c86f68-3898-41e6-8186-89e89b0c2800","correlation_id":"c51bf928-659d-49a7-aabe-8e6d184481e7","error_uri":"https://login.microsoftonline.com/error?code=9002313"}
Hi @Ghanshyam Singh , please review the answers in this thread. There are multiple reasons why you could be getting this error and this thread details possible solutions. Let me know if it works!
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James