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] Fix AuthenticationTrustResolver::isAnonymous()#42732

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
nicolas-grekas merged 1 commit intosymfony:5.4fromchalasr:fix-isanon
Aug 25, 2021

Conversation

@chalasr
Copy link
Member

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets#42726
LicenseMIT
Doc PR-

This method wasn't checking if a token is null nor$token->isAuthenticated() until#42650.
Reverting that behavior change fixes tests on both 5.3 and 5.4

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

Nice thanks

}

return$token && !$this->isAuthenticated($token);
if ($tokeninstanceof AnonymousToken ||$tokeninstanceof NullToken || ($token &&null ===$token->getUser())) {

Choose a reason for hiding this comment

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

return $token instanceof AnonymousToken || $token instanceof NullToken || ($token && !$token->getUser());

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

patch updated, thanks

@nicolas-grekas
Copy link
Member

Thank you@chalasr.

@nicolas-grekasnicolas-grekas merged commit81c2007 intosymfony:5.4Aug 25, 2021
@chalasrchalasr deleted the fix-isanon branchAugust 25, 2021 13:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@wouterjwouterjAwaiting requested review from wouterj

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

3 participants

@chalasr@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp