Skip to content

Add method level callback for HttpRequestValues initialization #34699

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
rstoyanchev opened this issue Apr 1, 2025 · 0 comments
Closed

Add method level callback for HttpRequestValues initialization #34699

rstoyanchev opened this issue Apr 1, 2025 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@rstoyanchev
Copy link
Contributor

rstoyanchev commented Apr 1, 2025

We initialize HttpRequestValues from @HttpExchange annotations, and invoke argument resolvers to have request values added. It would be useful to have an additional callback that takes into account the method and all arguments with the ability to contribute to the HttpRequestValues.

Spring Security can use this to check custom annotations, allow use of SpEL expressions that reference method arguments, and add request attributes. These can in turn be used for conditional processing in a client interceptor as usual.

@rstoyanchev rstoyanchev added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Apr 1, 2025
@rstoyanchev rstoyanchev added this to the 7.0.0-M4 milestone Apr 1, 2025
@rstoyanchev rstoyanchev self-assigned this Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant