Closed elenavanengelenmaslova closed 8 months ago
Any update? I'm waiting eagerly method security will supports coroutine function.
Any update? I'm waiting eagerly method security will supports coroutine function.
Seems like a duplicate of #12821
Closing as duplicate of https://github.com/spring-projects/spring-security/issues/12080.
Describe the bug When using reactive method security on a Kotlin spring boot reactive app with coroutines, I am getting an error
I am using
@EnableReactiveMethodSecurity
and@PreAuthorize
and spring boot version 3.0.4. With 3.0.3 version same issue, but 3.0.2 issues is not present and all works.I have reproduced the issue with a hello world example:
with gradle dependencies:
Full public repo to reproduce the issue with integration tests: https://github.com/elenavanengelenmaslova/kotlin-webflux-rest-security-example
To Reproduce
Expected behavior Annotation works, like in spring boot version 3.0.2.
Sample https://github.com/elenavanengelenmaslova/kotlin-webflux-rest-security-example
https://github.com/spring-projects/spring-boot/issues/34562