Skip to content

[Security] Changing the "enabled" value between requests for user to false logs out the user but changing username or password does not #17023

Closed
@ThePeterMick

Description

@ThePeterMick

Extra info for case A: the behaviour as described only happen if on the page there is a call in the template to is_granted, has the annotation @Security is_granted or requires a role via access_control in security.yml, or call isGranted in controller; something else I've spotted is that @Security has_role annotation will not log out the user but that is not the concern of this ticket (this observation might help though).

A call to is_granted helpers takes us to https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php#L68 which in turn ends up in https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php#L64

Symfony is great so just trying to keep its security great, too!

References:
#13870
symfony/symfony-docs#5419

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions