openid问题
我刚刚开始学习 openid,有一些我不清楚的地方,希望有人能澄清。
我有一个现有的用户表,例如
userid |电子邮件 |密码 |名字 |姓氏
和另一个存储分数的
表 参与
如果我实施像 Janrain 这样的 openid 解决方案,请 http://www.janrain.com/products/engage
此人以打开的方式登录后id,我想将该用户存储在我的数据库中,以便我可以跟踪他的分数...
这是 janrain openid 的想法吗?...一旦该人从另一个提供商登录,我就必须使用一些信息来填充我自己的用户表只是“没有密码”...然后下次当他使用相同的 openid 登录时,我就可以从我的分数表中提取分数。
如果我没有说清楚,请告诉我,我会更新=)
谢谢
I just started learning about openid and there is something that I am not clear about I was hoping someone could clarify.
I have an exsiting user table say
userid | email | password | firstname | lastname
and another table that stores scores
userid | score
If I implement an openid solution like Janrain engage from
http://www.janrain.com/products/engage
after the person logs in with an open id, I want to store that user in my DB so that I can keep track of his score...
Is this the idea of the janrain openid?...that once the person logs in from another provider, I have to then use some of the info to populate my own user table just "without the password"...Then next time when he signs in using the same openid, I can then pull the score from my score table.
let me know if I am not making it clear and I will update =)
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您查看一些现有的实现,以了解如何构建您的应用程序。
django-janrain 项目是一个简单的 python 实现,它使用内置的 django User 应用程序所以它非常简单。这是我的叉子,有两个小修改。
Janrain 提供了示例代码,它有很好的解释,但不是完整的实现。
I'd recommend you look at some of the existing implementations to understand how to build your app.
The django-janrain project is a simple implement in python and it uses the built-in django User app so it is pretty straight forward. This is my fork which has two minor modifications.
Janrain provides sample code that has good explanations but are not complete implementations.