Authorization_IdentityNotFound Error while accessing graph API

后端 未结 4 1360
旧时难觅i
旧时难觅i 2021-01-06 06:36

I have searched with the error which I found, Did not find any matching questions. So posting question. Appreciate if some one provides some pointers to proceed.

My

4条回答
  •  半阙折子戏
    2021-01-06 07:11

    In my case, I got the same error after I used Quickstart (step 1), then configured automatically .net sample (step 2), then download the code sample (step 3) as shown in the picture below.

    All steps was done successfully except step 3. Microsoft code generate, generate app id, and app secret in project successfully but the tenant was set to common in appsetting.json as seen in image below.

    I thought it was a valid thing, but later found out that this caused the issue.

    Solution: I copied the Directory (tenant) ID, than replace common with tenant Id, and it worked. I am not sure if this is a bug in Azure Quickstart code generation.

提交回复
热议问题