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] Use NullToken while checking authorization#37620

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:masterfromwouterj:security/null-token
Jul 31, 2020

Conversation

@wouterj
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?yes
Deprecations?no
TicketsFix#37523
LicenseMIT
Doc PRtbd

This allows voters to grant access to unauthenticated users. E.g. some objects can be viewed by anyone, in this case the voter has to be able to grant access to unauthenticated users.

Thisdoes break the interface PHPdoc ofTokenInterface:getUser() returnsnull instead ofstring|UserInterface. This is only true when using the new system, so not a real BC break. I think the only thing we can do to "guide" users is to add some custom handling for type errors related tonull andUserInterface methods ("Did you forgot to check fornull in the Voter?"). Is this something I should add to this PR?

romaricdrigon and colinodell reacted with thumbs up emoji
This allows to e.g. have some objects that can be viewed by anyone (even unauthenticated users).
@nicolas-grekasnicolas-grekas added this to thenext milestoneJul 22, 2020
@fabpot
Copy link
Member

Thank you@wouterj.

@fabpotfabpot merged commit374d705 intosymfony:masterJul 31, 2020
@nicolas-grekasnicolas-grekas modified the milestones:next,5.2Oct 5, 2020
@fabpotfabpot mentioned this pull requestOct 5, 2020
@wouterjwouterj deleted the security/null-token branchOctober 17, 2020 22:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

[Security][new system] Voter can not vote anymore on "anonymous"

4 participants

@wouterj@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp