2
0

Support specifying custom OAuth scope (#619)

For OpenID connect over OAuth, at least `openid profile` need to be set
there, but since the email is also used, the `email` scope will instruct
the OpenID provider to also deliver that.

---------

Co-authored-by: Baptiste Arnaud <contact@baptiste-arnaud.fr>
This commit is contained in:
Johannes Zellner
2023-07-20 11:38:21 +02:00
committed by GitHub
parent 3952ae2755
commit 48f074cdf7
2 changed files with 6 additions and 0 deletions

View File

@ -123,6 +123,7 @@ The Authorization callback URL should be `$NEXTAUTH_URL/api/auth/callback/azure-
| CUSTOM_OAUTH_USER_NAME_PATH | name | Used to map the name from the user info object |
| CUSTOM_OAUTH_USER_EMAIL_PATH | email | Used to map the email from the user info object |
| CUSTOM_OAUTH_USER_IMAGE_PATH | image | Used to map the image from the user info object |
| CUSTOM_OAUTH_SCOPE | openid profile email | OAuth scope |
For `*_PATH` parameters, you can use dot notation to access nested properties (i.e. `account.name`).