エラーコードポータル
MicrosoftMicrosoft Entra IDエラーコード

AADSTS90056

BadResourceRequest

別表記: 90056

コード AADSTS90056 · Microsoft Entra IDが報告した問題です。

BadResourceRequest - コードをアクセス トークンに引き換えるには、アプリは POST リクエストを /token エンドポイントに送信する必要があります。また、この前に、認証コードを指定し、それを POST リクエストで /token エンドポイントに送信する必要があります。 OAuth 2.0 認証コード フローの概要については、この記事を参照してください。ユーザーを /authorize エンドポイントに誘導します。これにより、authorization_code が返されます。 /token エンドポイントにリクエストを投稿することで、ユーザーはアクセス トークンを取得します。 [アプリの登録] > [エンドポイント] をチェックして、2 つのエンドポイントが正しく構成されていることを確認します。

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.

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。