After a quick look, I would say something like this below should be correct:
firewalls: admin_secured_area: pattern: ^/admin provider: entity_admin form_login: check_path: /admin/secured/login_check login_path: /admin/secured/login default_target_path: /admin logout: path: /admin/secured/logout target: / access_control: - { path: ^/admin/secured/(login|login_check|logout)$, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https } - { path: ^/admin, roles: ROLE_ADMIN, requires_channel: https }
In any case, if this does not help, I recommend checking the redirects with the built-in profiler (tabs with matching routes and logs) to enable it when changing the config_dev.yml redirection to:
web_profiler: toolbar: true intercept_redirects: true
source share