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)
This commit is contained in:
Lee Burton 2022-02-20 02:39:30 -08:00 committed by GitHub
parent 6d941fb5a3
commit 9c47b9cdee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ export class SamlConfig {
// available. Otherwise we use user.attributes which has the form {Name: [Value]}. // available. Otherwise we use user.attributes which has the form {Name: [Value]}.
const fname = samlUser.given_name || samlUser.attributes.FirstName || ''; const fname = samlUser.given_name || samlUser.attributes.FirstName || '';
const lname = samlUser.surname || samlUser.attributes.LastName || ''; const lname = samlUser.surname || samlUser.attributes.LastName || '';
const email = samlUser.email || samlUser.nameId; const email = samlUser.email || samlUser.name_id;
const profile = { const profile = {
email, email,
name: `${fname} ${lname}`.trim(), name: `${fname} ${lname}`.trim(),