我如何从 janrain / RPX 获取 photo_url?

发布于 2024-09-15 03:37:38 字数 172 浏览 6 评论 0原文

如果有人访问我的网站,我想在我的网站上发生 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

莫相离 2024-09-22 03:37:39

即使您请求,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.

野侃 2024-09-22 03:37:39

所以,有解决办法。我在此处找到了它。如果您注册的不是谷歌帐户,而是您的谷歌个人资料(有区别),那么您也会获得个人资料照片网址。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文