From 9c47b9cdee0046500e6e856535f72d13de4630da Mon Sep 17 00:00:00 2001 From: Lee Burton Date: Sun, 20 Feb 2022 02:39:30 -0800 Subject: [PATCH] Fix typo in email fallback for SAML It looks like nameId doesn't exist as a property but name_id does (as is used elsewhere in the function) --- app/server/lib/SamlConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/lib/SamlConfig.ts b/app/server/lib/SamlConfig.ts index daf70e11..cbed758a 100644 --- a/app/server/lib/SamlConfig.ts +++ b/app/server/lib/SamlConfig.ts @@ -183,7 +183,7 @@ export class SamlConfig { // available. Otherwise we use user.attributes which has the form {Name: [Value]}. const fname = samlUser.given_name || samlUser.attributes.FirstName || ''; const lname = samlUser.surname || samlUser.attributes.LastName || ''; - const email = samlUser.email || samlUser.nameId; + const email = samlUser.email || samlUser.name_id; const profile = { email, name: `${fname} ${lname}`.trim(),