spring-projects / spring-security

Spring Security
http://spring.io/projects/spring-security
Apache License 2.0
8.72k stars 5.86k forks source link

Support `@AuthorizedReturnObject` for Java Records #15696

Open rwinch opened 2 weeks ago

jzheaux commented 1 week ago

I'm not yet sure how we will do this since records are final and thus cannot be proxied by CGLib. If they extend an interface, then the existing support works already.

Perhaps we can log an issue with Spring Framework to see if support for this can be supplied in ProxyFactory.