Create Azure AD access tokens Response Error "AADSTS50000"

Yalei Zhao 5 Reputation points
2023-12-13T04:38:08.0733333+00:00

When I create Azure AD access tokens, I got a error.

https://login.microsoftonline.com/<tenant_id>/oauth2/token Response Error 50000

{
    "error": "server_error",
    "error_description": "AADSTS50000: There was an error issuing a token or an issue with our sign-in service. Trace ID: e20ea59a...... Correlation ID: 160ef87b-1...... Timestamp: 2023-12-13 04:32:46Z",
    "error_codes": [
        50000
    ],
    "timestamp": "2023-12-13 04:32:46Z",
    "trace_id": "e20ea59a-.....",
    "correlation_id": "160ef87b-1......",
    "error_uri": "https://login.microsoftonline.com/error?code=50000"
}
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} vote

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,906 Reputation points Microsoft Employee Moderator
    2023-12-13T19:15:08.77+00:00

    @Yalei Zhao

    Thank you for your post!

    Error:

    "error": "server_error"
    "error_description": "AADSTS50000: There was an error issuing a token or an issue with our sign-in service.
    

    Based off your AADSTS50000 error code, it looks like there might've been an issue with our sign-in service. To hopefully help point you in the right direction, I noticed that the URL you're using is - https://login.microsoftonline.com/<tenant_id>/oauth2/token, can you see if using /{tenantid}/oauth2/v2.0/token works when requesting your access token? For more info.

    • If you're still having issues, can you share the documentation that you're following so I can try to reproduce your issue on my end?

    Links:

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


Your answer

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