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

AuthorizeReturnObject should target the authorized object within MVC return values #16059

Open
Tracked by #16057
jzheaux opened this issue Nov 11, 2024 · 0 comments
Open
Tracked by #16057

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Nov 11, 2024

Placing @AuthorizeReturnObject on a method that returns ResponseEntity is limiting since the user doesn't have access to ResponseEntity to add the appropriate Security annotations.

#14717 will add support for applying Security configuration to third-party components. As part of that, Security should consider providing a mixin for Spring Web container objects like ResponseEntity and ModelAndView.

@jzheaux jzheaux changed the title Object Authorization should be enforced when wrapped in MVC return values AuthorizeReturnObject should target the authorized object within MVC return values Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant