FOS用户捆绑认证 [英] FOS user bundle authentication
本文介绍了FOS用户捆绑认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
FOS用户捆绑通过这项服务容器对用户进行认证?
How FOS User Bundle authenticates the user by this service container?
$this->container->get('security.context')->getToken()->getUser();
我要处理的认证过程。我应该在哪里看在包?
I want to manipulate the authentication process. Where should I look in the bundle?
推荐答案
其实FOSUserBundle没有做认证。它实际上提供了一个数据库的用户提供。验证部分由Symfony2的内部 form_login
身份验证提供者完成。如果你想创建自定义的身份验证提供者检查这个的食谱项。
Actually FOSUserBundle doesn't do authentication. It actually provides a db user provider. Authentication part is done by Symfony2's internal form_login
authentication provider. If you want to create custom authentication provider check this cookbook entry.
这篇关于FOS用户捆绑认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文