Is there an OpenID 2.0 plugin for Symfony?

后端 未结 3 1673
南旧
南旧 2021-02-08 15:42

I am using sfOpenID plugin for Symfony, which doesn\'t support OpenID 2.0. That means, for example, that people using Yahoo! OpenID can\'t login to my site.

There is an

3条回答
  •  一个人的身影
    2021-02-08 16:04

    I think you've covered all your options with sfOpenID and taOpenIDsfGuardPlugin for Symfony's plugins.

    Without studying OpenID's specs in detail though, you could try one of those PHP libraries (http://wiki.openid.net/Libraries) by dropping it in your lib and connecting to a sfUser, or whatever you're using for authentication. There is also the OpenID Enabled library (http://openidenabled.com/php-openid/) which still uses PHP4 although compatible with PHP5 if you tweak the error reporting level to exclude some warnings.

    There are a few tutorials out there that explains how to enable OpenID on your site with PHP: http://www.saeven.net/openid.htm or http://www.plaxo.com/api/openid_recipe.

    And better yet, use this knowledge to make a sfPlugin out of it afterwards.

提交回复
热议问题