From 1a9973356c0149b40dc2c5dede86592df286b05c Mon Sep 17 00:00:00 2001 From: Maxime FRIESS Date: Sun, 24 Mar 2024 19:11:25 +0100 Subject: [PATCH] Added OAUTH2_USER_ATTR_EMAIL_APPEND --- .../sharelatex_diff/AuthenticationController.js.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap-overleaf-sl/sharelatex_diff/AuthenticationController.js.diff b/ldap-overleaf-sl/sharelatex_diff/AuthenticationController.js.diff index 489b208..453c3f8 100644 --- a/ldap-overleaf-sl/sharelatex_diff/AuthenticationController.js.diff +++ b/ldap-overleaf-sl/sharelatex_diff/AuthenticationController.js.diff @@ -63,7 +63,7 @@ > const profile = await profileResponse.json() > 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 firstname = profile?.[process.env.OAUTH2_USER_ATTR_FIRSTNAME] ?? email > const lastname = process.env.OAUTH2_USER_ATTR_LASTNAME