mirror of
https://git.unistra.fr/aius/root/ldap-overleaf-sl.git
synced 2025-05-04 19:55:26 +02:00
Added OAUTH2_USER_ATTR_EMAIL_APPEND
This commit is contained in:
parent
73abb950cf
commit
1a9973356c
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@
|
||||||
> const profile = await profileResponse.json()
|
> const profile = await profileResponse.json()
|
||||||
> console.log("OAuth2 user profile", JSON.stringify(profile))
|
> console.log("OAuth2 user profile", JSON.stringify(profile))
|
||||||
>
|
>
|
||||||
> const email = profile[process.env.OAUTH2_USER_ATTR_EMAIL ?? "email"]
|
> const email = profile[process.env.OAUTH2_USER_ATTR_EMAIL ?? "email"] + (process.env.OAUTH2_USER_ATTR_EMAIL_APPEND ?? '')
|
||||||
> const uid = profile[process.env.OAUTH2_USER_ATTR_UID ?? "uid"]
|
> const uid = profile[process.env.OAUTH2_USER_ATTR_UID ?? "uid"]
|
||||||
> const firstname = profile?.[process.env.OAUTH2_USER_ATTR_FIRSTNAME] ?? email
|
> const firstname = profile?.[process.env.OAUTH2_USER_ATTR_FIRSTNAME] ?? email
|
||||||
> const lastname = process.env.OAUTH2_USER_ATTR_LASTNAME
|
> const lastname = process.env.OAUTH2_USER_ATTR_LASTNAME
|
||||||
|
|
Loading…
Add table
Reference in a new issue