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()
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 的提供商处获取帐户数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何从具有 LightOpenID 的提供商处获取帐户数据?


基础教程推荐
- php中的PDF导出 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- 将变量从树枝传递给 js 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- Web 服务器如何处理请求? 2021-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01