Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Handle consecutive supports() calls in the RememberMeAuthenticator #38396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2020

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.