首页 \ 问答 \ 从openid获取用户详细信息(Get user details from openid)

从openid获取用户详细信息(Get user details from openid)

我使用lightopenid作为网站的登录系统,成功登录后,我需要用户的详细信息,如他的名字,姓氏,电子邮件和出生日期。

我怎样才能从他的openid中获取这些信息? 假设谷歌,我使用的身份验证网址为: https//www.google.com/accounts/o8/id

然后在validate()方法返回1之后,我将用户重定向到我站点中的另一个页面。 但是如何在登录后获取用户的详细信息?

仅供参考,我正在使用openid for google,yahoo和aol。 而对于Facebook,我使用图形api和twitter,我正在使用twitter oauth。 有没有办法用这些获取用户数据? 请建议。


I'm using lightopenid as the login system for a site and after successful login, I need the user's details like his first name, last name, email and date of birth..

How can I get this information from his openid? Suppose for google, I'm using the authentication url as: https://www.google.com/accounts/o8/id

Then after the validate() method returns 1, I'm redirecting the user to another page in my site. But how can I fetch the details of the user after login ?

FYI, I'm using openid for google, yahoo and aol. And for facebook, I'm using graph api and for twitter, I'm using twitter oauth. Is there any way of fetching user data with these too? Please suggest.


原文:https://stackoverflow.com/questions/4540451
更新时间:2023-09-24 09:09

最满意答案

我曾经处于类似于你的情况,我记得通过用“debuger”版本替换“常规”Flash Player来解决它。 你说你正在使用播放器的ActiveX版本,所以

1)首先下载此文件:

用于Internet Explorer的Flash Player内容调试程序 - ActiveX

2)安装它,然后导航到:“c:\ Windows \ SysWOW64 \ Macromed \ Flash \”,你应该找到一个名为“ FlashUtil * _ActiveX.dll ”的文件,它刚刚被新替换(查看文件的日期) )。 这是您刚刚安装的Flash播放器的调试版。

3)在Windows窗体应用程序中覆盖此文件(我假设您在应用程序中包含了Flash Player,而不是依赖于主机系统上可用的播放器,我不建议这样做)。

4)然后,在ActionScript项目中(在Flash Builder中)创建SWF的调试版(只需在“调试模式”下启动项目,并在Windows窗体应用程序中复制生成的SWF文件。

5)保持调试器在FlashBuilder中运行,与Windows窗体应用程序交互,直到它产生RTE。 您应该在Flash Builder中看到ActionScript错误的跟踪。 当然,您可以像往常一样在Flash Builder中设置断点并进行调试。

您可能想要使用一种自动化形式来重复整个过程(我正在考虑ANT或Flash Builder的外部工具(这是正确的名称吗?) - 您甚至可以让FB自动启动您的Windows应用程序首先创建一个新的SWF文件并将其放在正确的文件夹中)。

希望这很清楚。

祝你好运!


I was once in a situation similar to yours, and I remember having resolved it by replacing the "regular" Flash Player with its "debuger" version. You say you are using the ActiveX version of the player, so

1) first download this file:

Flash Player content debugger for Internet Explorer - ActiveX

2) Install it, then navigate to: "c:\Windows\SysWOW64\Macromed\Flash\", there you should find a file named something like "FlashUtil*_ActiveX.dll", which was just freshly replaced (check the file's date). This is the debugger version of the Flash player you just installed.

3) Overwrite this file in your windows form application (I assume you included the Flash Player in the application, rather than relying on the player being available on the host system, which I wouldn't recommend).

4) Then, in your ActionScript project (in Flash Builder) create a debugger version of your SWF (just launch the project in "Debug Mode", and copy the resulting SWF file in your windows form application.

5) Keeping the debugger running in FlashBuilder, interract with your windows form application until it produces the RTE. You should see the trace of the ActionScript error in Flash Builder. Of course, you can set breakpoints in Flash Builder and debug as usual.

You may want to use a form of automation that repeats the whole process (I'm thinking of ANT or the Flash Builder's Externals Tools (is that the right name?) — you could even have your windows application automatically launched by FB, after it first creates a new SWF file and places it in the right folder).

Hope this was clear enough.

Good luck!

相关问答

更多
  • 我重新编译了SWF并嵌入了TLF库(在ActionScript设置下,只是设置了已嵌入的TLF swc),这似乎解决了这个问题。 我发誓我之前尝试过没有成功,但这次有效。 I recompiled the SWF and embedded the TLF libraries (under ActionScript settings, just set the TLF swc which was already there to be embedded) in it and this seems to hav ...
  • axShockwaveFlash1.OcxState表示存储为AxHost.State的Active X控件的持久状态,当序列化时,它具有自己的头元数据。 请参见AxHost.State 将其保存到文件会创建有效的SWF文件,但包含AxHost.State的其他元数据。 通过检查SWF标头结构 ,您可以看到Flash的开始位置,并使用安全编辑器( Notepad ++ ),您可以在该点之前删除所有内容。 axShockwaveFlash1.OcxState represents the persisted ...
  • 如果他愿意的话,他可以提供100万代表,事实上他选择了错误的技术堆栈来代替他人。 经过很多努力,你可能会让Flash播放器在一组非常有限的设备上运行在android浏览器上(并且没有安装android 4.0+),但是仍然无法在pdf查看器中运行它。 He can offer 1million reps if he wants, the fact is he's chosen the wrong technology stack for andriod. With a lot of effort, you ...
  • 找出原因 - 这是因为我通过https连接访问我的个人帐户的帖子,该连接没有显示闪存 - 它通过http连接链接。 Found out why - It's because I'm accessing the post to my personal account through a https connection, which doesn't show the flash - it's linked via a http connection.
  • 您应该使用contentLoaderInfo.frameRate 。 You should use contentLoaderInfo.frameRate instead.
  • 任何嵌入式资产的安装都是同步的(我认为唯一的例外是Loader.loadBytes),所以只要你这样做,你可以访问它的所有属性: image = new EmbeddedImage(); trace(image.width, image.height); The instatiation of any embedded asset is syncronous (I think the only exception is Loader.loadBytes), so as soon as you do it ...
  • 我曾经处于类似于你的情况,我记得通过用“debuger”版本替换“常规”Flash Player来解决它。 你说你正在使用播放器的ActiveX版本,所以 1)首先下载此文件: 用于Internet Explorer的Flash Player内容调试程序 - ActiveX 2)安装它,然后导航到:“c:\ Windows \ SysWOW64 \ Macromed \ Flash \”,你应该找到一个名为“ FlashUtil * _ActiveX.dll ”的文件,它刚刚被新替换(查看文件的日期) )。 ...
  • 我想你在Android设备上使用adobe air for mobile。 在Air for mobile中,加载外部SWF文件有额外的限制 - 特别是当它们包含字节代码(ActionScript)时。 由于您的辅助SWF文件包含自己的动作脚本代码,因此如果没有明确的安全限额,则无法加载到您的移动空中应用程序中。 当您实例化引用嵌入式SWF文件的类时,AS3会隐式使用Loader ,并使用默认选项加载 - 对于移动运行时环境,该选项在空中设置为不同。 您可以通过自己创建Loader和LoaderContex ...
  • 我使用这个过程解决了嵌入式.swf的问题: 使用Swiffy将master .swf文件转换为.html文件。 使用Dev Tools我能够看到转换后的.swf主文件正在寻找嵌入的.swf文件作为.swf.json文件。 我通过Swiffy运行嵌入的.swf文件,将它们转换为.html文件。 打开.html文件,你会在标题的JS代码中看到一个swiffyobject 。 swiffyobject是一个JSON格式的对象。 复制对象 - {}所有内容,包括括号。 将对象粘贴到新文件中,保存文件并将.json附 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。