skip to Main Content

How can I log out active session of banned user with Symfony?

This is not working

security:
    always_authenticate_before_granting: true

this is error

 The security option "always_authenticate_before_granting" cannot be used when "enable_authenticator_manager" is set to true. If you rely on this behavior, set it to false

2

Answers


  1. Try below code :

    # config/packages/security.yaml
    security:
        # ...
        enable_authenticator_manager: falstr
    
    Login or Signup to reply.
  2. It should be:

    # config/packages/security.yaml
    
    security:
        always_authenticate_before_granting: true
        enable_authenticator_manager: false
    

    Nilesh’s answer is right but there is a typo.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search