开发者

Integrating OpenID into Symfony 1.4?

I've tried integrating sfPHPOpenIdPlugin but that hit a dead-end since it's built for Symfony 1.2 and relies on deprecated PHP functionality; I also had a go with sfGoogleLoginPlugin which did authenticate correctly but lacks extended capability to retrieve user details (+ would restrict me to Google; obviously).

I'm thinking the most viable solution is to link in one of the various PHP libraries available into my model.

I'm wondering if anyone else has had any success/tips with such an integration and what libraries to consider?


Update:

Having gone off this as a concept I switched to using sfTwitterAuthPlugin for my portfolio and any Symfony-based web apps I build.

For anyone interested, the version on the official plugins website l开发者_JS百科acks some useful functionality, I'm actively maintaining improvements at https://github.com/stevelacey/sfTwitterAuthPlugin.


Actually sfPHPOpenIdPlugin was updated yesterday and is compatible with Symfony 1.4.


I spent a lot of time trying to integrate with different authentication providers for a .Net project that I'm working on. Eventually, I ended using a cloud service from the company RPXNow, which I absolutley love. It abstracts the details of each provider into a single REST API which is very easy to use. You can so simple authentication with the free version, but for $10, you get access to extended data, as well as integration with social sites (post to Facebook wall, Tweet on behalf of user, etc). Of course, users always have the right to restrict these features.

Anyway, not sure how it would integrate with PHP, but it was a snap with .Net/C#.

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜