diff --git a/app/meteor-accounts-saml/server/lib/Utils.ts b/app/meteor-accounts-saml/server/lib/Utils.ts index a07f5c5de23..2461e4d73b6 100644 --- a/app/meteor-accounts-saml/server/lib/Utils.ts +++ b/app/meteor-accounts-saml/server/lib/Utils.ts @@ -430,7 +430,7 @@ export class SAMLUtils { } const email = this.getProfileValue(profile, userDataMap.email); const profileUsername = this.getProfileValue(profile, userDataMap.username, true); - const name = this.getProfileValue(profile, userDataMap.name); + const name = this.getProfileValue(profile, userDataMap.name, true); // Even if we're not using the email to identify the user, it is still mandatory because it's a mandatory information on Rocket.Chat if (!email) { diff --git a/app/meteor-accounts-saml/server/lib/parsers/Response.ts b/app/meteor-accounts-saml/server/lib/parsers/Response.ts index ee1172b0648..bf92043a597 100644 --- a/app/meteor-accounts-saml/server/lib/parsers/Response.ts +++ b/app/meteor-accounts-saml/server/lib/parsers/Response.ts @@ -403,7 +403,7 @@ export class ResponseParser { const key = attributes[i].getAttribute('Name'); if (key) { - SAMLUtils.log(`Name: ${attributes[i]}`); + SAMLUtils.log(`Attribute: ${attributes[i]} has ${values.length} value(s).`); SAMLUtils.log(`Adding attribute from SAML response to profile: ${key} = ${value}`); profile[key] = value; }