Janrain OpenId vs lightopenid PHP libraries

别来无恙 提交于 2019-12-23 21:12:11

问题


What are the differences between the PHP implementation of Janrain's PHP OpenID library and the LightOpenID.

Is one more secure than the other?

According to Google's best practices page:

A correct OpenID implementation has to:

  1. cover checking of cryptographic signatures

  2. checking of nonces

  3. Yadis discovery

I'm guessing the Janrain's library does fulfill all these requirements as Google recommends the library, but is the LightOpenID fulfilling 1 & 2.


回答1:


LightOpenID uses the stateless version of the protocol, making it a lot simpler than the Janrain's library.

The stateless version delegates validation (anything related to cryptography, nonces, etc.) to the provider, so LightOpenID doesn't check that by itself. It does, however, follow the spec in that matter, so it isn't a security issue.



来源:https://stackoverflow.com/questions/10281007/janrain-openid-vs-lightopenid-php-libraries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!