FOS user bundle authentication

戏子无情 提交于 2019-12-03 21:23:26

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/10531129/fos-user-bundle-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!