开发者

How to return email address when auth an OpenID?

开发者 https://www.devze.com 2022-12-25 09:45 出处:网络
I\'m trying to build a login form using OpenID Auth. I\'m using sample code from: http://openidenabled.com/php-openid/ But I only get user\'s email address when auth with account o开发者_开发技巧n myo

I'm trying to build a login form using OpenID Auth. I'm using sample code from: http://openidenabled.com/php-openid/ But I only get user's email address when auth with account o开发者_开发技巧n myopenid.com I want get returned email when auth link "google.com/accounts/o8/id" How can I do? Thank you very much.


There's absolutely no guarantee that a particular OpenID will be backed up by an email address.

To get that level of user data, you'll need to look into the "persona" part of the OpenID system


You must use the AX extension instead of the Simple Registration extension. You also must "require" the email attribute instead of marking it as optional.

Special requirements for Google.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号