简体   繁体   English

将 OpenID 集成到 Symfony 1.4 中?

[英]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;我曾尝试集成sfPHPOpenIdPlugin,但由于它是为 Symfony 1.2 构建的,并且依赖于已弃用的 PHP 功能,因此陷入了死胡同; 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).我还尝试了 sfGoogleLoginPlugin ,它确实进行了正确的身份验证,但缺乏检索用户详细信息的扩展功能(+ 会限制我使用 Google;显然)。

I'm thinking the most viable solution is to link in one of the various PHP libraries available into my model.我认为最可行的解决方案是链接到我的模型中可用的各种 PHP 库之一。

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.将其作为一个概念后,我转而将 sfTwitterAuthPlugin 用于我的投资组合和我构建的任何基于 Symfony 的 Web 应用程序。

For anyone interested, the version on the official plugins website lacks some useful functionality, I'm actively maintaining improvements at https://github.com/stevelacey/sfTwitterAuthPlugin .对于任何感兴趣的人,官方插件网站上的版本缺乏一些有用的功能,我正在https://github.com/steveracey/sfTwitterAuthPlugin积极维护改进。

实际上sfPHPOpenIdPlugin已于昨天更新并与 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.我花了很多时间尝试与我正在处理的 .Net 项目的不同身份验证提供程序集成。 Eventually, I ended using a cloud service from the company RPXNow , which I absolutley love.最终,我结束了使用RPXNow公司的云服务,我非常喜欢它。 It abstracts the details of each provider into a single REST API which is very easy to use.它将每个提供程序的详细信息抽象为一个非常易于使用的 REST API。 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).您可以使用免费版本进行如此简单的身份验证,但只需 10 美元,您就可以访问扩展数据,以及与社交网站的集成(发布到 Facebook 墙、代表用户发布推文等)。 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#.无论如何,不​​确定它如何与 PHP 集成,但它与 .Net/C# 结合起来很容易。

Hope that helps.希望有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM