我如何从 janrain / RPX 获取 photo_url?
如果有人访问我的网站,我想在我的网站上发生 jainrain / RPX 身份验证后提取 photo_url。但 photo_url 没有发送。我得到了 openid 名称,但没有得到照片地址。我用我的 gmail 帐户尝试过,我将一张照片添加到我的个人资料中,并为任何人发布了它,但 gmail 没有为我发送它。为什么不干活呢?
If somebody visit my site, i would like to extract the photo_url after jainrain / RPX authentication was happend on my site. But photo_url was not sent. I get the openid name, but not the photo address. I tried it with my gmail account, i put a photo to my profile, and i published it for anybody, but gmail doesn't sent it for me. Why don't work it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
即使您请求,OpenID 提供商也不需要发送有关经过身份验证的用户的任何信息。
据我所知,谷歌不支持发送照片网址,但它支持发送姓名和电子邮件地址。
It's not required for an OpenID Provider to send any information about an authenticated user, even if you request it.
As far as I know Google does not support sending photo urls, though it does support sending names and email addresses.
所以,有解决办法。我在此处找到了它。如果您注册的不是谷歌帐户,而是您的谷歌个人资料(有区别),那么您也会获得个人资料照片网址。
So, there is solution. I found it here. If you sign up not with you google account, but your google profile (there is difference) then you will get the profile photo url also.