-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Remove 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
…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
RememberMeToken::getSecret()
and RememberMeToken's $secret
propertyRememberMeToken::getSecret()
and RememberMeToken's $secret
property
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.
After the discussion with Oskar is resolved 🙂
} | ||
|
||
public function __unserialize(array $data): void | ||
{ | ||
[$this->secret, $this->firewallName, $parentData] = $data; | ||
// BC Layer with payloads generated before 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.
// BC Layer with payloads generated before Symfony 8.0 | |
// BC Layer with payloads generated before Symfony 8.0, to be removed in Symfony 9.0 |
Is it ok to keep such a BC Layer here? @OskarStark @stof
Uh oh!
There was an error while loading. Please reload this page.