Skip to content

[Security] Removal deprecated RememberMeToken::getSecret() and RememberMeToken's $secret property #61011

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

Open
wants to merge 4 commits into
base: 8.0
Choose a base branch
from

Conversation

ktherage
Copy link
Contributor

@ktherage ktherage commented Jul 1, 2025

Q A
Branch? 8.0
Bug fix? no
New feature? no
Deprecations? no
Issues --
License MIT

@ktherage ktherage requested a review from chalasr as a code owner July 1, 2025 09:44
@carsonbot carsonbot added this to the 8.0 milestone Jul 1, 2025
@ktherage ktherage changed the title [Security] Removal deprecated RememberMeToken::getSecret() and RememberMeToken's secret property [Security] Removal deprecated RememberMeToken::getSecret() and RememberMeToken's $secret property Jul 1, 2025
public function __serialize(): array
{
// $this->firewallName should be kept at index 1 for compatibility with payloads generated before Symfony 8
return [$this->secret, $this->firewallName, parent::__serialize()];
// Newly serialized data removes the secret deprecated since Symfony 7.2 and removed in Symfony 8.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the comment ? or the method ?

…berMeToken.php

Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
@ktherage ktherage force-pushed the RememberMeToken-bc-layer-removal branch from 1f75ede to 002f9c9 Compare July 1, 2025 13:33
@ktherage ktherage force-pushed the RememberMeToken-bc-layer-removal branch from 002f9c9 to 63e71e7 Compare July 1, 2025 13:33
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.

3 participants