Skip to content

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

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

Closed
Tracked by #16057
jzheaux opened this issue Nov 11, 2024 · 1 comment
Closed
Tracked by #16057
Assignees
Labels
in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Milestone

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
@evgeniycheban
Copy link
Contributor

Hi, @jzheaux can I work on this?

@jzheaux jzheaux self-assigned this Apr 21, 2025
@jzheaux jzheaux added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement labels Apr 21, 2025
@jzheaux jzheaux added this to the 6.5.0-RC1 milestone Apr 21, 2025
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

No branches or pull requests

2 participants