diff --git a/lib/claims/PassportProfileMapper.js b/lib/claims/PassportProfileMapper.js index 6bc09ec..942a621 100644 --- a/lib/claims/PassportProfileMapper.js +++ b/lib/claims/PassportProfileMapper.js @@ -66,7 +66,7 @@ PassportProfileMapper.prototype.getNameIdentifier = function () { return { nameIdentifier: claims[fm.nameIdentifier] || claims[fm.name] || - claims[fm.emailaddress] + claims[fm.email] }; }; @@ -104,4 +104,4 @@ PassportProfileMapper.prototype.metadata = [ { description: 'The SAML name identifier of the user' }]; -module.exports = PassportProfileMapper; \ No newline at end of file +module.exports = PassportProfileMapper;