Authorization_IdentityNotFound Error while accessing graph API

后端 未结 4 1356
旧时难觅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:28

    For me, I had not given admin consent. This is a critical step. My mistake was in thinking that by granting the app permissions, this was giving admin consent, but its not the same thing.

    From step 3 on this site: https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_service

    I just pasted their call into a browser after filling in the tenant and client id, then signed in, and everything worked.

    GET https://login.microsoftonline.com/{tenant}/adminconsent
    ?client_id=6731de76-14a6-49ae-97bc-6eba6914391e
    &state=12345
    &redirect_uri=http://localhost/myapp/permissions
    

提交回复
热议问题