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] Rework firewall access denied rule#34476

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

Closed

Conversation

@nesk
Copy link
Contributor

QA
Branch?5.0
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#28229
LicenseMIT
Doc PRn/a

It's currently impossible to provide a AccessDeniedHandler to Symfony, it will just be ignored. See#28229 for details.

@dimabory submitted a PR (#30423) to fix this, which was merged, but then reverted (#31142) due to a BC break in 3.4 branch (#31136).

Since the bug reported in#28229 still exists, I was planning to do a PR in the master branch before the 5.0 release, however time passed and I didn't see it would be released that soon. I hope this could still be merged as a hotfix in the 5.0 branch (despite the BC break) since I find this bugreally annoying.

@nesknesk changed the titleRework firewall access denied rule[Security] Rework firewall access denied ruleNov 21, 2019
@neskneskforce-pushed thesecurity-access-denied-rework branch frombaa448e toc573f66CompareNovember 21, 2019 09:46
@nesk
Copy link
ContributorAuthor

Rebased the commit to define@dimabory as the author of the commit.

@chalasrchalasr added this to thenext milestoneNov 21, 2019
@neskneskforce-pushed thesecurity-access-denied-rework branch fromc573f66 to9954f18CompareNovember 27, 2019 10:31
@Nyholm
Copy link
Member

Thank you for this PR. I've been researching this for about 45 minutes now.

This is the wrong approach Im afraid. The AccesDeniedHandler should only be called when an authenticated users is trying to access a resource they are not allowed to access. If an anonymous user is trying to access a protected resource, then aInsufficientAuthenticationException is thrown. Same thing with a user with "remember me".

I madesymfony/symfony-docs#13615 to avoid confusion.

@fabpotfabpot closed thisAug 11, 2020
@nicolas-grekasnicolas-grekas modified the milestones:next,5.2Oct 5, 2020
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.2

Development

Successfully merging this pull request may close these issues.

7 participants

@nesk@Nyholm@fabpot@nicolas-grekas@chalasr@carsonbot@dimabory

[8]ページ先頭

©2009-2025 Movatter.jp