code: function attrRemapper (map, profile, done) {
    var error = null;
  
    if (!profile) {
      error = new Error('No SAML attributes returned');
    } else {
      Object.keys(profile).forEach(function (attrName) {
        if (map[attrName]) {
          profile[map[attrName]] = profile[attrName];
        }
      });
    }
    return done(error, profile);
  }
docs: /*
  use an attribute map to add 'aliases' of the original
  attributes with more easily used names.
  
  map is an object mapping attribute names to new aliases
  profile is the user profile object
  done is a callback