Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

CydeWeys
Copy link

@CydeWeys CydeWeys commented Oct 1, 2013

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.

Ben McIlwain added 5 commits October 1, 2013 16:01
to allow specification of custom attributes through OpenID
Attribute Exchange.
Signed-off-by: Ben McIlwain <[email protected]>
…ct axschema.org parameters for retrieving profile data.

Signed-off-by: Ben McIlwain <[email protected]>
Signed-off-by: Ben McIlwain <[email protected]>
@codeaholics
Copy link

@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
Copy link

rwky commented Aug 16, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants