Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HttpStatusAccessDeniedHandler #16502

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

earlgrey02
Copy link
Contributor

Add HttpStatusAccessDeniedHandler, AccessDeniedHandler that sets the HTTP status code like HttpStatusEntryPoint. This feature is already supported by Spring WebFlux as HttpStatusServerAccessDeniedHandler, but is not supported by Spring Web MVC.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 30, 2025
@earlgrey02 earlgrey02 force-pushed the add-http-status-access-denied-handler branch 2 times, most recently from 8b0cd59 to 750e135 Compare January 30, 2025 04:25
@sjohnr sjohnr self-assigned this Jan 30, 2025
@sjohnr sjohnr added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 30, 2025
Copy link
Member

@sjohnr sjohnr left a comment

Choose a reason for hiding this comment

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

@earlgrey02 thanks for the PR! I have added feedback below. Please also make sure to sign the commit so the DCO check passes. Let me know if you have any questions.

@earlgrey02 earlgrey02 force-pushed the add-http-status-access-denied-handler branch 2 times, most recently from 7fc4bcf to d71e060 Compare January 31, 2025 22:10
sjohnr added a commit to earlgrey02/spring-security that referenced this pull request Jan 31, 2025
@sjohnr sjohnr force-pushed the add-http-status-access-denied-handler branch from d71e060 to 897b310 Compare January 31, 2025 23:17
@sjohnr sjohnr force-pushed the add-http-status-access-denied-handler branch from 897b310 to 531f2f4 Compare February 2, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants