Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

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 2 commits into from
Apr 4, 2018

Conversation

i3or1s
Copy link
Contributor

@i3or1s i3or1s commented Apr 3, 2018

Q A
Branch? 2.8
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

@nicolas-grekas nicolas-grekas changed the title [SecurityBundle] Add missing argument to security.authentication.prov… [SecurityBundle] Add missing argument to security.authentication.provider.simple Apr 3, 2018
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Apr 3, 2018
@chalasr
Copy link
Member

chalasr commented Apr 3, 2018

A test case would be well deserved, adding a simple listener on a firewall in https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/yml/container1.yml and updating the expected result should be enough. I will add it tomorrow morning if you don't before.

@@ -210,6 +210,7 @@
<argument /> <!-- Simple Authenticator -->
<argument /> <!-- User Provider -->
<argument /> <!-- Provider-shared Key -->
<argument>null</argument> <!-- UserChecker -->
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need null? just wondering as its not consistent with the arguments above 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see @nicolas-grekas added it originally: #26762 (comment)

Still needed now with your fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not needed for the fix, but it would be inconsistent not to add it since it is a default parameter.

@i3or1s
Copy link
Contributor Author

i3or1s commented Apr 4, 2018

@chalasr I was looking into it. Not sure how I would actually do that. If you can point me to documentation on this part it would be much helpful. Otherwise, I must dig deep into test organization in order to figure out what to do.

@chalasr
Copy link
Member

chalasr commented Apr 4, 2018

@i3or1s Just pushed a test on your branch :)

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.

(for 2.8, rebase in progress by @chalasr )

@chalasr chalasr changed the base branch from 3.4 to 2.8 April 4, 2018 11:59
@chalasr
Copy link
Member

chalasr commented Apr 4, 2018

rebase done, travis failure unrelated (Finder).
Note to merger: some SecurityBundle tests will need an update when merging in 3.4.

@nicolas-grekas
Copy link
Member

Thank you @i3or1s.

@nicolas-grekas nicolas-grekas merged commit c82c2f1 into symfony:2.8 Apr 4, 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
This was referenced Apr 6, 2018
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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.