OpenID 关联句柄有多长?
我正在构建由我的网站背后的数据库支持的 DotNetOpenID.RelyingParty.IReyingPartyApplicationStore
的实现。
将有一个开放关联表,以 OP URL 和关联“句柄”为关键字。
我在网上找不到任何表明这些句柄在实践中有多长的信息,而且我什至无法弄清楚它们在 DotNetOpenID 代码中的何处生成。
我应该将数据库字段设置为多宽?
I'm building an implementation of DotNetOpenID.RelyingParty.IRelyingPartyApplicationStore
backed by the database behind my web site.
There will be a table of open associations, keyed on the OP URL and the association "handle".
I can't find anything online suggesting how long these handles are in practice, and I am having trouble even figuring out where in the DotNetOpenID code they are generated.
How wide should I make the database field?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
OpenID 1.1 规范 说:
第 8.2.1 节。 OpenID 2.0 规范强> 说:
Appendix D. Limits of the OpenID 1.1 Specification says:
Section 8.2.1. Common Response Parameters of the OpenID 2.0 Specification says:
OpenID 规范中没有关联句柄长度限制,因此遗憾的是无法保证。然而,雅虎拥有我见过的最长的关联句柄,可能是因为他们将秘密本身加密到句柄中,所以可能没有任何理由让句柄比这更长。雅虎的句柄长度约为 140 个字符。我允许 250 个字符。
There is no association handle length limit in the OpenID spec, so there unfortunately are no guarantees. However, Yahoo has the longest association handles I've seen, probably because they encrypt the secret itself into the handle, so there probably isn't any reason for handles to be much longer than that. Yahoo's handles are ~140 characters in length. I would allow for 250 characters.