我正在构建 DotNetOpenID.RelyingParty.IRelyingPartyApplicationStore
的实现,由我的网站背后的数据库支持。
将有一个开放关联表,以 OP URL 和关联“句柄”为键。
我在网上找不到任何关于这些句柄在实践中有多长的信息,而且我什至无法确定它们在 DotNetOpenID 代码中的何处生成。
数据库字段应该多宽?
最佳答案
Appendix D. Limits <强>的OpenID 1.1 Specification 说:
assoc_handle: 255 characters or less, and consist only of ASCII characters in the range 33-126 inclusive (ie printable non-whitespace characters).
Section 8.2.1. Common Response Parameters <强>的OpenID 2.0 Specification 说:
assoc_handle: [...] A string 255 characters or less in length. It MUST consist only of ASCII characters in the range 33-126 inclusive (printable non-whitespace characters).
关于database-design - OpenID 关联句柄有多长?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5707729/