Skip to content

Conversation

@leofeyer
Copy link
Contributor

Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #27044
License MIT

This PR adds the SimpleAuthenticationProvider changes made in Symfony 2.7 to Symfony 2.8. See #27044 (comment)

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

Some changes have been made on 2.8 while they should have been on 2.7 as well (the first being #26370), hence the diff.
👍

@nicolas-grekas
Copy link
Member

Thank you @leofeyer.

@nicolas-grekas nicolas-grekas merged commit 9afad9d into symfony:2.8 Apr 26, 2018
nicolas-grekas added a commit that referenced this pull request Apr 26, 2018
… (leofeyer)

This PR was merged into the 2.8 branch.

Discussion
----------

Make the simple auth provider the same as in Symfony 2.7

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27044
| License       | MIT

This PR adds the `SimpleAuthenticationProvider` changes made in Symfony 2.7 to Symfony 2.8. See #27044 (comment)

Commits
-------

9afad9d Make the simple auth provider the same as in Symfony 2.7.

if (!$user instanceof UserInterface) {
try {
$user = $this->userProvider->loadUserByUsername($user);
Copy link
Member

Choose a reason for hiding this comment

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

this is the currently not covered case which does not exist on 2.7. loadUserByUsername() should throw when no user can be found for the passed username

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