Skip to content

[Security] Fix invalid cookie when migrating to new Security #41744

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
Jun 18, 2021

Conversation

jderusse
Copy link
Member

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

In the new Security System, the method RememberMeDetails::fromRawCookie expects to get a cookie made of 4 parts.
This is not the case when the cookie has been generated by a PersistentTokenBasedRememberMeServices.

This is an issue when migrating an application to the new Security System, old cookie lead to 500 errors.

This PR fix the issue by throwing gracefully a AuthenticationException. Handled by the authenticator.

@jderusse jderusse force-pushed the fix-remember-migration branch from 40cc4d5 to aa68e2c Compare June 18, 2021 10:08
@fabpot
Copy link
Member

fabpot commented Jun 18, 2021

Thank you @jderusse.

@fabpot fabpot merged commit 853c916 into symfony:5.3 Jun 18, 2021
@fabpot fabpot mentioned this pull request Jun 30, 2021
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.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy