Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Oct 3, 2018

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Oct 2, 2018

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

@chalasr chalasr added this to the 4.2 milestone Oct 2, 2018
@chalasr chalasr force-pushed the deprecate-simple-auth branch 2 times, most recently from 9e52873 to ff0ec61 Compare October 2, 2018 20:40
Copy link
Member

@fabpot fabpot left a 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));
Copy link
Member

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) {
Copy link
Member

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) {
Copy link
Member

Choose a reason for hiding this comment

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

true ===

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(with minor comments)

@chalasr chalasr force-pushed the deprecate-simple-auth branch from ff0ec61 to 5093b9f Compare October 3, 2018 07:03
@chalasr
Copy link
Member Author

chalasr commented Oct 3, 2018

Comments addressed, thanks

@fabpot
Copy link
Member

fabpot commented Oct 3, 2018

Thank you @chalasr.

@fabpot fabpot merged commit 5093b9f into symfony:master Oct 3, 2018
fabpot added a commit that referenced this pull request Oct 3, 2018
… 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
@chalasr chalasr deleted the deprecate-simple-auth branch October 3, 2018 08:19
This was referenced Nov 3, 2018
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Nov 30, 2019
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
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