Bonus question: Anybody knows how to do it using ruby-openid gem?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is possible with both, but with some limitations. OpenID provider needs to support either simple registration or attribute exchange. For example Yahoo supports sreg and Google supports AX. Yahoo will send email only to verified websites. Google asks for user’s premission before sharing email with openid relying party, if user declines login will fail.
To get user’s email from Facebook your application should first ask for extended permissions (see http://developers.facebook.com/docs/authentication/permissions and http://developers.facebook.com/blog/post/355).
This is pretty common question, so you should be able to google up ton of info on this subject.