Share via

Request access_token Times wrong

jqpbgp 0 Reputation points
2023-05-25T13:34:00.5166667+00:00

Request access_token Times wrong, the result is

{

    "error": "invalid_grant",

    "error_description": "AADSTS9002313: Invalid request. Request is malformed or invalid.\r\nTrace ID: ef1487dc-c64b-4add-9d01-6aae19bd4c00\r\nCorrelation ID: 0261c266-b0ab-49f2-87e5-e6f8438666f7\r\nTimestamp: 2023-05-25 13:21:24Z",

    "error_codes": [

        9002313

    ],

    "timestamp": "2023-05-25 13:21:24Z",

    "trace_id": "ef1487dc-c64b-4add-9d01-6aae19bd4c00",

    "correlation_id": "0261c266-b0ab-49f2-87e5-e6f8438666f7",

    "error_uri": "https://login.microsoftonline.com/error?code=9002313"

}
Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,455 Reputation points MVP
    2023-05-25T14:29:10.77+00:00

    The error code 9002313 in the error message is unique to Azure Active Directory. It states that the request was malformed or invalid.

    The explanation could be

    Access tokens have a finite lifespan, usually around one hour.

    The error could be caused if the user or an Azure AD administrator revoked the grant.

    The redirect URI must exactly match between your authorization request and your token request.

    The client application may not have the necessary permissions to use the requested grant type.

    Was this answer helpful?

    0 comments No comments

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.