FOS user bundle authentication

2019-02-14 08:58发布

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条回答
Evening l夕情丶
2楼-- · 2019-02-14 09:35

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.

查看更多
登录 后发表回答