-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Deprecate simple_preauth and simple_form in favor of Guard #28693
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
Conversation
chalasr
commented
Oct 2, 2018
•
edited
Loading
edited
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | yes |
Tests pass? | yes |
Fixed tickets | n/a |
License | MIT |
Doc PR | n/a |
9e52873
to
ff0ec61
Compare
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.
small change for consistency
@@ -265,6 +267,10 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto | |||
->canBeUnset() | |||
; | |||
|
|||
if ($factory instanceof SimplePreAuthenticationFactory || $factory instanceof SimpleFormFactory) { | |||
$factoryNode->setDeprecated(sprintf('The "%s" security listener is deprecated Symfony 4.2, use "guard" instead.', $name)); |
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.
"use Guard instead" to be consistent everywhere?
{ | ||
parent::__construct(); | ||
|
||
$this->addOption('authenticator', null); | ||
|
||
if (true === $triggerDeprecation) { |
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.
true ===
*/ | ||
class SimplePreAuthenticationFactory implements SecurityFactoryInterface | ||
{ | ||
public function __construct(bool $triggerDeprecation = true) | ||
{ | ||
if (true === $triggerDeprecation) { |
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.
true ===
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.
(with minor comments)
ff0ec61
to
5093b9f
Compare
Comments addressed, thanks |
Thank you @chalasr. |
… favor of Guard (chalasr) This PR was merged into the 4.2-dev branch. Discussion ---------- [Security] Deprecate simple_preauth and simple_form in favor of Guard | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 5093b9f [Security] Deprecate simple_preauth and simple_form in favor of Guard
This PR was merged into the 5.0 branch. Discussion ---------- [minor] Removed simple_form and simple_pre_auth As per symfony/symfony#28693 `simple_form` and `simple_pre_auth` has been removed in 5.0 Commits ------- 015d91a Removed simple_form and simple_pre_auth