错误代码门户
MicrosoftMicrosoft Entra ID错误代码

AADSTS90056

BadResourceRequest

其他表示形式:90056

代码 AADSTS90056 · Microsoft Entra ID 报告的问题。

BadResourceRequest - 要兑换访问令牌的代码,应用程序应向 /token 端点发送 POST 请求。此外,在此之前,您应该提供授权代码并将其在 POST 请求中发送到 /token 端点。请参阅本文以了解 OAuth 2.0 授权代码流程的概述。将用户定向到 /authorize 端点,该端点将返回授权码。通过向 /token 端点发布请求,用户可以获得访问令牌。检查应用程序注册 > 端点以确认两个端点配置正确。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

BadResourceRequest - To redeem the code for an access token, the app should send a POST request to the /token endpoint. Also, prior to this, you should provide an authorization code and send it in the POST request to the /token endpoint. Refer to this article for an overview of OAuth 2.0 authorization code flow. Direct the user to the /authorize endpoint, which will return an authorization_code. By posting a request to the /token endpoint, the user gets the access token. Check App registrations > Endpoints to confirm that the two endpoints were configured correctly.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。