如何从具有 LightOpenID 的提供商处获取帐户数据? [英] How to fetch account data from a provider with LightOpenID?

查看:22
本文介绍了如何从具有 LightOpenID 的提供商处获取帐户数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用名为 LightOpenID 的小型 OpenID 库时遇到问题.我可以对几乎所有提供者进行身份验证,但我不知道如何从提供者那里获取数据.即使使用 print_r(),我也只能得到 Array().

I'm having problems with a small OpenID-library called LightOpenID . I can authenticate to almost all providers, but I don't know how to fetch the data from the provider. I only get Array(), even with print_r().

推荐答案

需要调用getAttributes() after $openid->validate() 之前没有.

You need to call getAttributes() after $openid->validate() not before.

记住:

请注意,它不保证会出现任何必需/可选参数

Note that it does not guarantee that any of the required/optional parameters will be present

这篇关于如何从具有 LightOpenID 的提供商处获取帐户数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆