8000 [SecurityBundle] Add missing argument to security.authentication.provider.simple by nicolas-grekas · Pull Request #26762 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[SecurityBundle] Add missing argument to security.authentication.provider.simple #26762

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

Closed
wants to merge 1 commit into from

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #26753
License MIT
Doc PR -

@@ -210,6 +210,7 @@
<argument /> <!-- Simple Authenticator -->
<argument /> <!-- User Provider -->
<argument /> <!-- Provider-shared Key -->
<argument>null</argument><!-- User Checker -->
Copy link
Member Author
@nicolas-grekas nicolas-grekas Apr 3, 2018

Choose a reason for hiding this comment

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

Explicit null because while SimpleFormFactory::createAuthProvider() does replace the argument, SimplePreAuthenticationFactory::create() doesn't, thus keeps it as is.

Copy link
Contributor
@andreybolonin andreybolonin Apr 3, 2018

Choose a reason for hiding this comment

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

@nicolas-grekas success tested on 4.0.7
screen shot 2018-04-03 at 3 56 47 pm

screen shot 2018-04-03 at 3 56 10 pm

Copy link
@divyeshaspl divyeshaspl Apr 5, 2018

Choose a reason for hiding this comment

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

yes its works for me Thnaks @nicolas-grekas

@nicolas-grekas
Copy link
Member Author

Introduced in #26370. @i3or1s can you please have a look?

@i3or1s
Copy link
Contributor
i3or1s commented Apr 3, 2018

@nicolas-grekas Yes i will take a look

@i3or1s
Copy link
Contributor
i3or1s commented Apr 3, 2018

@nicolas-grekas I would also replace the argument in the SimplePreAuthenticationFactory::create() since there is default UserChacker that can be used Security/Core/User/UserChecker.php rather than using null. I guess in the long run it is better to deal with an object rather than null.
I must have missed that part :/

@nicolas-grekas
Copy link
Member Author
nicolas-grekas commented Apr 3, 2018

@i3or1s would you mind opening a PR doing so? (you can borrow the patch here also so I'll close this one.)

@i3or1s
Copy link
Contributor
i3or1s commented Apr 3, 2018

@nicolas-grekas No problems I will do so now.

@chalasr
Copy link
Member
chalasr commented Apr 3, 2018

Closing in favor of #26774, thanks @nicolas-grekas.

@chalasr chalasr closed this Apr 3, 2018
nicolas-grekas added a commit that referenced this pull request Apr 4, 2018
…cation.provider.simple (i3or1s, chalasr)

This PR was merged into the 2.8 branch.

Discussion
----------

[SecurityBundle] Add missing argument to security.authentication.provider.simple

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #26753
| License       | MIT
| Doc PR        | -

Created PR in relation to a conversation in [PR](#26762) #26762

Commits
-------

c82c2f1 [SecurityBundle] Add test for simple authentication config
1b26aac [SecurityBundle] Add missing argument to security.authentication.provider.simple
@nicolas-grekas nicolas-grekas deleted the fix-missing-arg branch May 25, 2018 15:30
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.

7 participants
0