Symfony2.4 SonataAdminBundle registration error: you must activate the exit to the security firewall configuration

The input is working fine. Getting error with / admin / logout

You must activate the exit to the security firewall configuration.

at

in *\vendor\sonata-project\user-bundle\Controller\AdminSecurityController.php at line 98

I set logout to true as described:

security.yml:

firewalls:
        main:
            pattern:      .*
            #pattern: ^/
            form-login:
                provider:       fos_userbundle
                csrf_provider:  form.csrf_provider
                login_path:     /login
                use_forward:    false
                check_path:     /login_check
                failure_path:   null
            logout:       true
            anonymous:    true

How to avoid this error using symfony2.4, fosuserbundle1.3 and sonata-admin dev-master?

+3
source share
1 answer

logout The node in your security.yml should contain two subnods that define the exit path and the goal where the user is redirected after logging out:

logout:
    path:   /admin/logout
    target: /

Not sure if this also works in the context of a sonata, but it should work under normal conditions.

+19
source

All Articles