{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/61bad16ab972d1c3da57a79ab715434f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"61bad16ab972d1c3da57a79ab715434f","url":"https://api.github.com/users/saptaru","login":"saptaru","id":690190},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-07T18:35:02Z","closed_at":null,"comments":0,"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/380","body":"Hi,\r\n\r\nI am facing one issue when login to backend and cannot tell what I am doing wrong .\r\nI did tried to promote root user as admin, super_admin or administrator ... same issue. If I type a wrong password then the login form validates correctly.\r\nI am using SonataAdminBundle with FOSUserBundle. Here is my security.yml configuration settings :\r\n\r\n    security:\r\n    #        encoders:\r\n    #              Symfony\\Component\\Security\\Core\\User\\User: plaintext\r\n             \r\n        providers:\r\n            fos_userbundle:\r\n                id: fos_user.user_manager\r\n\r\n        firewalls:\r\n            dev:\r\n              pattern:  ^/(_(profiler|wdt)|css|images|js)/\r\n              security: false\r\n            \r\n            main:\r\n                pattern:      .*\r\n                form-login:\r\n                    provider:       fos_userbundle\r\n                    login_path:     /secured/login\r\n                    use_forward:    false\r\n                    check_path:     /secured/login_check\r\n                    failure_path:   null\r\n                    default_target_path: /admin/dashboard\r\n                logout:\r\n                    path:   /secured/logout\r\n                    target: /secured/login\r\n                anonymous:    true\r\n\r\n        access_control:\r\n            # The WDT has to be allowed to anonymous users to avoid requiring the login with the AJAX request\r\n            - { path: ^/wdt/, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/profiler/, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n\r\n            # AsseticBundle paths used when using the controller for assets\r\n            - { path: ^/js/, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/css/, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n\r\n            # URL of FOSUserBundle which need to be available to anonymous users\r\n            - { path: ^/secured/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/secured/login_check$, role: IS_AUTHENTICATED_ANONYMOUSLY } # for the case of a failed login\r\n            - { path: ^/user/new$, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/user/check-confirmation-email$, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/user/confirm/, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/user/confirmed$, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/user/request-reset-password$, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/user/send-resetting-email$, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/user/check-resetting-email$, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n            - { path: ^/user/reset-password/, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n\r\n            # Secured part of the site\r\n            # This config requires being logged for the whole site and having the admin role for the admin part.\r\n            # Change these rules to adapt them to your needs\r\n            - { path: ^/admin/, role: ROLE_ADMIN }\r\n            - { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n\r\n\r\n        role_hierarchy:\r\n            ROLE_ADMIN:       ROLE_USER\r\n            ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_SONATA_ADMIN, ROLE_ALLOWED_TO_SWITCH]\r\n\r\n        acl:\r\n            connection: default","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/380","title":"Access denied to /admin/dashboard","number":380,"id":2165733,"created_at":"2011-11-07T18:35:02Z"},"action":"opened"}