Open CydeWeys opened 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.
@CydeWeys can you please make a PR against https://github.com/passport-next/passport-openid and it'll get looked into.
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.