-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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
base: 8.0
Are you sure you want to change the base?
Conversation
ktherage
commented
Jul 1, 2025
Q | A |
---|---|
Branch? | 8.0 |
Bug fix? | no |
New feature? | no |
Deprecations? | no |
Issues | -- |
License | MIT |
…erMeToken's secret property
RememberMeToken::getSecret()
and RememberMeToken's $secret
property
…ions are triggered
src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php
Outdated
Show resolved
Hide resolved
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
There was a problem hiding this comment.
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>
1f75ede
to
002f9c9
Compare
002f9c9
to
63e71e7
Compare