如何使用LightOpenID从提供商获取帐户数据? [英] How to fetch account data from a provider with LightOpenID?
本文介绍了如何使用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()
之后之后$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屋!
查看全文