FOS user bundle authentication

后端 未结 1 1563
闹比i
闹比i 2021-01-06 05:32

How FOS User Bundle authenticates the user by this service container?

$this->container->get(\'security.context\')->getToken()->getUser();
         


        
相关标签:
1条回答
  • 2021-01-06 06:02

    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.

    0 讨论(0)
提交回复
热议问题