I'm using the rails gem: OmniAuth to login users.
When using an OpenId provider I would like to get certain field, like email and nickname but I don't see any documentation on this.
Any ideas?
thanks
Are you asking how to request for that data, or how to ensure you get it? You can request for data using the OpenID AX attributes, but an OpenID provider isn't obliged to respond to what you request for. This should be of some help though:
Retrieve OpenID AX attributes from Google / Yahoo in Rails
It seems like Google will respond with an email only to
http://schema.openid.net/contact/email
whereas Yahoo will reply to
http://axschema.org/contact/email
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With