Symfony2中的社交登录 [英] Social login in Symfony2

查看:167
本文介绍了Symfony2中的社交登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我正在尝试在我当前正在开发的网站中设置一些社交登录名(facebook和twitter).

Right now, I'm trying to setup some social logins (facebook and twitter) in a website I'm currently developing.

但是现在,我陷入了困境.我只是在关注HWIOAuthBundle的文档: https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/3-configuring_the_security_layer.md 但是我陷入了步骤3-A.

But now, I'm stuck in some point. I'm just following HWIOAuthBundle's documentation: https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/3-configuring_the_security_layer.md But I'm stuck at step 3-A.

我不"理解这一点.我没有创建服务或使用服务的经验……第一个参数是什么意思?

I "can't" understand that point. I'm not experienced in creating services, nor using them... What does the first paraph mean?

伙计们,您是否知道任何逐步指南来实现我想要做的事情?

So guys, do you know any step by step guide to achieve what I'm trying to do?

我会在附近,刷新这个问题,所以我可以尽快回答您可能问我的任何问题.

I will be around, refreshing this question, so I can answer any question you may ask to me asap.

谢谢.

P.S .:很抱歉,如果我不清楚,或者我没有提供任何必要的信息.我对Symfony的了解不是很多,我只知道基本知识(路由,控制器,实体,存储库),所以请原谅我.

P.S.: Sorry if I'm not clear at all, or if I didn't provide any necessary info. Im not so much experienced in Symfony, I just know the basics (routing, controllers, entities, repositories), so forgive me, please.

推荐答案

一方面,如果您想使用HWIOAuthBundle,请阅读

On the one hand, if you want to use the HWIOAuthBundle, please, read this article about a personal experience installing this bundle.

我逐步遵循了这些说明,它对我有用.

I followed these instructions, step-by-step and it worked for me.

另一方面,您可以使用Daniel提出的FOS捆绑软件.

On the other hand, you can use the FOS' bundles proposed by Daniel.

这篇关于Symfony2中的社交登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆