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

Allow to customize response body of 403 issued by HTTP policy #29549

Conversation

michalvavrik
Copy link
Member

closes: #5751

Allow to customize response body of 403 that comes from HTTP policy by exception mappers. IMO the rest of #5751 has already been fixed as explain in #5751 (comment). This PR throws ForbiddenException rather simply failing event with 403, that allows builtin exception mappers that are present in both RESTEasy Reactive and Classic to handle the exception.

@quarkus-bot

This comment has been minimized.

@michalvavrik michalvavrik force-pushed the feature/allow-customize-403-from-http-policy branch from 677c803 to 07a8803 Compare November 29, 2022 17:55
@sberyozkin sberyozkin merged commit 3500cdf into quarkusio:main Nov 30, 2022
@quarkus-bot quarkus-bot bot added this to the 2.16 - main milestone Nov 30, 2022
@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Nov 30, 2022
@michalvavrik michalvavrik deleted the feature/allow-customize-403-from-http-policy branch November 30, 2022 12:25
@gsmet gsmet modified the milestones: 2.16 - main, 2.15.0.Final Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow quarkus-oidc to customize response body of 403
3 participants