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 90 forks source link

Add the ability to set custom fetch attributes as an option on the OpenID strategy #22

Open CydeWeys opened 10 years ago

CydeWeys commented 10 years ago

This adds a new attribute "extensions" on the options object that is passed to the OpenID strategy upon initialization. This new attribute is a key/value pair of additional OpenID attributes (see the Attribute Exchange spec) that will be requested from the OpenID provider. The key is the URL of the attribute, e.g. "http://schema.openid.net/contact/email", and the value is either "required" or "optional", which instructs the OpenID provider on how to respond if it cannot deliver the information.

codeaholics commented 10 years ago

@jaredhanson Is there any chance of getting this merged? We're running a private build of passport-openid with the patch applied at the moment, but it would be great to get proper support for arbitrary attributes.

rwky commented 6 years ago

@CydeWeys can you please make a PR against https://github.com/passport-next/passport-openid and it'll get looked into.