jaredhanson / passport-openid

OpenID authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-openid/?utm_source=github&utm_medium=referral&utm_campaign=passport-openid&utm_content=about
MIT License
98 stars 85 forks source link

Be capable to add more attributes for profile exchange #24

Open shawnzhu opened 10 years ago

shawnzhu commented 10 years ago

It only allows 4 required attributes for attribute change:

It should support adding more attributes. for example:

passport.use(new OpenIDStrategy({
  returnURL: 'http://www.example.com/auth/openid/return',
  realm: 'http://www.example.com/',
  profile: true,
  attributes: {"http://openid.net/schema/person/guid": "required"}
},
function(identifier, profile, done) {
  // ...
}

));