Skip to content

Commit

Permalink
docs: Mention a possible cause of ResourceNotFound issue (#7758)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikalai-s committed Jun 9, 2023
1 parent 9417822 commit dcb576f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/providers/azure-ad.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ AZURE_AD_TENANT_ID=<copy the tenant id here>

That will default the tenant to use the `common` authorization endpoint. [For more details see here](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols#endpoints).

:::note
When you see `ResourceNotFound` error code while accessing an API, make sure to use the correct tenant ID. For instance, when the intended access is for a personal account, the tenant ID should not be provided.
:::

:::note
Azure AD returns the profile picture in an ArrayBuffer, instead of just a URL to the image, so our provider converts it to a base64 encoded image string and returns that instead. See: https://docs.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0#examples. The default image size is 48x48 to avoid [running out of space](https://next-auth.js.org/faq#:~:text=What%20are%20the%20disadvantages%20of%20JSON%20Web%20Tokens%3F) in case the session is saved as a JWT.
:::
Expand Down

1 comment on commit dcb576f

@vercel
Copy link

@vercel vercel bot commented on dcb576f Jun 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.