-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Kotlin Extension Functions for ReactiveUserDetailsService #8510
Comments
@juergenzimmermann I think the difference is Spring's WebClient is intended to be used in blocking applications to allow parallel execution. If you need blocking operations, you should use the UserDetailsService instead of ReactiveUserDetailsService. Can you clarify why you feel this is appropriate for ReactiveUserDetailsService? |
@rwinch I'm having a reactive microservice, and therefore I'm using |
Sorry I just reread what was happening and realized it is using coroutines rather than blocking. Please ignore me :) |
@juergenzimmermann We can modify this issue to be specific to In the meantime, would this be equivalent to the following?
|
Yes, it will be equivalent to |
Spring (WebFlux) has e.g. this extension function:
See https://github.com/spring-projects/spring-framework/blob/master/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/ServerResponseExtensions.kt#L62
According to the
...AndAwait
naming convention I propose these Kotlin extension functions forReactiveUserDetailsService
:The text was updated successfully, but these errors were encountered: