-
Notifications
You must be signed in to change notification settings - Fork 132
Description
While working on introducing a ReactiveEvaluationContextExtension
in Spring Security (spring-projects/spring-security#8958), I used Spring Data R2DBC as an example of usage, but it seems the SpEL expressions are not resolved correctly. I tried several options, but I keep getting error messages like the following:
EL1008E: Property or field 'authentication' cannot be found on object of type 'java.lang.Object[]' - maybe not public or not valid?
@jzheaux tried the same implementation of the ReactiveEvaluationContextExtension in Spring Data Mongo and it worked correctly there. It looks like it's a problem specific to Spring Data R2DBC. A similar error was reported in #576.
I have built a small project to demonstrate the error: https://github.com/ThomasVitale/spring-security-data-reactive-example
After running the application, first create a new book:
curl -v -X POST -u isabelle:password -H 'Content-Type: application/json' localhost:8080/books -d '{"name": "The Hobbit"}'
Then, try fetching the books created by the currently authenticated user:
curl -v -u isabelle:password localhost:8080/books