Skip to content

Conversation

@wouterj
Copy link
Member

@wouterj wouterj commented Oct 3, 2020

Q A
Branch? 5.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #38206
License MIT
Doc PR -

If I read the issue correctly, the problem is not so much that autoLogin() is called in supports, but that it is called multiple times in the same request (in lazy firewalls). This is fixed by this issue.

@qurben or @fancyweb do you have an application with this error, and can you please test the patch in this PR? Please let me know if this actually fixed the issue. (if you can't, I'll create a small demo app to test this one)

@qurben
Copy link
Contributor

qurben commented Oct 3, 2020

Symfony 5.1.6 + this patch fixes remember me in my application.

@wouterj
Copy link
Member Author

wouterj commented Oct 3, 2020

Quick note: The RememberMeAuthenticator is a bit ugly. This is because the AbstractRememberMeServices already does almost everything that the authenticator should do. We should probably try to refactor the remember me services, to also decouple when remember me should be used, vs actually setting the remember me cookie.

@fabpot
Copy link
Member

fabpot commented Oct 4, 2020

Thank you @wouterj.

@fabpot fabpot merged commit b94fef4 into symfony:5.1 Oct 4, 2020
@fabpot fabpot mentioned this pull request Oct 4, 2020
@wouterj wouterj deleted the issue-38206/lazy-firewall-remember-me branch October 4, 2020 08:54
@fancyweb
Copy link
Contributor

fancyweb commented Oct 5, 2020

Thank you @wouterj for taking care of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants