Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[Security] Skip user checks if not implementing UserInterface#27044

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromchalasr:simple-auth-anonymous-bc
Apr 25, 2018

Conversation

@chalasr
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#26871
LicenseMIT
Doc PRn/a

thrownewAuthenticationException('Simple authenticator failed to return an authenticated token.');
}

if ($authTokeninstanceof AnonymousToken) {
Copy link
Member

Choose a reason for hiding this comment

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

the right check would be!$user instanceof UserInterface, to cover all cases where calling the user checker is not possible.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

done

@chalasrchalasrforce-pushed thesimple-auth-anonymous-bc branch fromfa20fe1 to384acf9CompareApril 25, 2018 11:44
@chalasrchalasr changed the title[Security] Skip user checks for anonymous tokens[Security] Skip user checks if not implementing UserInterfaceApr 25, 2018
@fabpot
Copy link
Member

Thank you@chalasr.

@fabpotfabpot merged commit384acf9 intosymfony:2.7Apr 25, 2018
fabpot added a commit that referenced this pull requestApr 25, 2018
…ace (chalasr)This PR was merged into the 2.7 branch.Discussion----------[Security] Skip user checks if not implementing UserInterface| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#26871| License       | MIT| Doc PR        | n/aCommits-------384acf9 [Security] Skip user checks if not implementing UserInterface
@chalasrchalasr deleted the simple-auth-anonymous-bc branchApril 25, 2018 13:01
@leofeyer
Copy link
Contributor

leofeyer commentedApr 26, 2018
edited
Loading

It seems that the changes have not been merged correctly into the 2.8 branch (and higher).

2.7
https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Security/Core/Authentication/Provider/SimpleAuthenticationProvider.php#L50-L52

2.8, 3.4, 4.0
https://github.com/symfony/symfony/blob/2.8/src/Symfony/Component/Security/Core/Authentication/Provider/SimpleAuthenticationProvider.php#L52-L67

I can confirm that the error no longer occurs in version 2.7, however,it still does occur in the versions 2.8, 3.4 and 4.0.

@nicolas-grekas
Copy link
Member

But tests pass, so there is a missing test case.
@leofeyer would you like to submit a fix?

@chalasr
Copy link
MemberAuthor

I can see what happened, I'm on it

@leofeyer
Copy link
Contributor

Here you go:#27059

nicolas-grekas added a commit that referenced this pull requestApr 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       | MITThis 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.
@fabpotfabpot mentioned this pull requestApr 27, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof requested changes

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@aschemppaschemppaschempp approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

7 participants

@chalasr@fabpot@leofeyer@nicolas-grekas@stof@aschempp@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp