8000 Remember me not working with anonymous: lazy · Issue #34679 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Remember me not working with anonymous: lazy #34679
Closed
@blixemmedia

Description

@blixemmedia

Symfony version(s) affected: 5.0.0

Description

When defining:

    firewalls:
        main:
            anonymous: lazy

The remember me functionality does not work. To be precise: https://github.com/symfony/security-guard/blob/5.0/Firewall/GuardAuthenticationListener.php#L167 is never executed.

How to reproduce

Follow the Security documentation at https://symfony.com/doc/4.4/security.html to set up a basic login form with authentication, except configure anonymous: lazy. Then follow https://symfony.com/doc/4.4/security/remember_me.html and try to log in with the remember me checkbox ticked. You will see that the REMEMBERME cookie is not set.

Then change the security configuration to anonymous: true, clear cache and try logging in again. This time you will get the REMEMBERME cookie.

Additional context

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

      0