Whenever I go to /admin/logout
, I'm correctly redirected to the root of my project but still logged in when I visit /admin/
as I'm not prompted for credentials.
Here is my configuration:
security.yml
security:
firewalls:
admin_area:
pattern: ^/admin
http_basic: ~
stateless: true
switch_user: { role: ROLE_SUPER_ADMIN, parameter: _want_to_be_this_user }
logout: { path: /admin/logout, target: / }
AdminBundle/Resources/config/routing.yml
logout:
pattern: /logout
app/config/routing.yml
admin:
resource: "@AdminBundle/Resources/config/routing.yml"
prefix: /admin
The authorization is still in place as the headers state Authorization:Basic YWRtaW46cEAkJHcwUmQh
so I guess credentials are still provided to the application during the request.
I know there is no proper way to logout from a HTTP Basic Auth
as per this question but maybe Symfony2 allows it?