python-openid 上的 OpenID 错误消息
我正在使用来自 Janrain 的 python-openid 库
http://openidenabled.com/python-openid/< /a>
我将他们的 Django 示例改编为另一个名为 Web2Py 的框架,它似乎可以工作,但有一些恼人的副作用。
第一个问题是 sreg(简单注册扩展)和 ax(属性交换)似乎不起作用。 我知道 Google 使用 ax,但我的 openID 消费者总是返回 None。
每当我使用 Google 登录时,它都会在标准输出上发出烦人的错误消息。 它似乎有效,但可能预示着更大的问题?
尝试使用存储的发现信息时出错:< openid.consumer.consumer。 TypeURIMismatch:必需类型 http://specs.openid.net/auth/2.0/signon 未找到 在 ['http://specs.openid.net/auth/2.0/server ', 'http://openid.net/srv/ax/1.0', 'http://specs.openid.net/extensions/ui/1.0/mode /popup', 'http://specs.openid.net /extensions/ui/1.0/icon', 'http://specs.openid.net/extensions /pape/1.0'] 结束 点https://www.go ogle.com/accounts/o8/ud'claimed_id=无 local_id=无 canonicalID=无used_yad is=True
当我打开无状态模式时,Google 实际上不再显示错误,而是轮到 Yahoo 了:
从服务器收到“invalidate_handle”https://open.login.yahooapis.com/openid /op/auth
有谁对这些问题有任何见解吗?
I'm using the python-openid library from Janrain at
http://openidenabled.com/python-openid/
I adapted their Django example to another framework called Web2Py and it appears to be working, but with some annoying side-effects.
The first problem is that sreg (Simple Registration Extension) and ax (Attribute Exchange) don't seem to work. I know that Google uses ax, but my openID consumer always returns None for both of them.
Whenever I login with Google it spews an annoying error message on stdout. It appears to be working, but could be indicative of larger problems?
Error attempting to use stored discovery information: < openid.consumer.consumer.
TypeURIMismatch: Required type http://specs.openid.net/auth/2.0/signon not found
in ['http://specs.openid.net/auth/2.0/server', 'http://openid.net/srv/ax/1.0',
'http://specs.openid.net/extensions/ui/1.0/mode/popup', 'http://specs.openid.net
/extensions/ui/1.0/icon', 'http://specs.openid.net/extensions/pape/1.0'] for end
point https://www.go
ogle.com/accounts/o8/ud' claimed_id=None local_id=None canonicalID=None used_yad
is=TrueWhen I turn on stateless mode, Google actually doesn't display an error anymore, but instead its Yahoo's turn:
Received "invalidate_handle" from server https://open.login.yahooapis.com/openid
/op/auth
Does anyone have any insight to these problems?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您使用Python 2.5。 我还尝试将 openid 与 web2py 一起使用,但在使用 2.6 时,SReg 总是返回 None 。
问候,
HC
http://w2popenid.appspot.com
make sure you use Python 2.5. I am also trying to use openid with web2py and was always returned None by SReg when using 2.6.
Regards,
HC
http://w2popenid.appspot.com
我遇到了同样的问题,这确实让我变得疯狂,但我在这里找到了解决方案 python-openid 不提供 ax 或 sreg 属性,它对我有用。
I have had the same problem and it really made me becoming crazy but I found the solution here python-openid doesn't provide ax or sreg attributes and it worked for me.