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 access decision manager to control which token to vote on#20388

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
javiereguiluz merged 1 commit intosymfony:5.4fromxabbuh:symfony-58754
Nov 19, 2024

Conversation

@xabbuh
Copy link
Member

Followingsymfony/symfony#58754: calling.Security::isGranted() inside a voter has the drawback that we do not know if the checks performed here act on the same token that we have in our voter as the token inside the token storage might have change or may change in between.

@carsonbotcarsonbot added this to the5.4 milestoneNov 13, 2024
@carsonbotcarsonbot changed the title[Security] use access decision manager to control which token to vote on[Security] use access decision manager to control which token to vote onNov 13, 2024
@javiereguiluzjaviereguiluz merged commit0e8d2b6 intosymfony:5.4Nov 19, 2024
3 checks passed
@javiereguiluz
Copy link
Member

Christian, thanks for improving this.

Also, while merging I added acaution section with the same explanation that you shared here about whySecurity shouldn't be used:c9b77ef

xabbuh reacted with thumbs up emoji

@xabbuhxabbuh deleted the symfony-58754 branchNovember 19, 2024 09:51
OskarStark added a commit that referenced this pull requestNov 19, 2024
…Oliver Kossin)This PR was merged into the 5.4 branch.Discussion----------[Security] Fix wrong method call of the decision manager`@xabbuh`  changed the use of “decision manage” in [PR-20388](#20388)  However, the method is described differently in the [interface](https://github.com/symfony/symfony/blob/7.2/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManagerInterface.php#L29).It's not `isGranted` its `decide`Commits-------97599f7 Fix isGranted to decide
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

3 participants

@xabbuh@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp