mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
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:
parent
6d941fb5a3
commit
9c47b9cdee
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user