-
Notifications
You must be signed in to change notification settings - Fork 128
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
Non-reactive TokenValidator #1602
Comments
I agree with you @Spikhalskiy we should follow a similar strategy providing imperative and reactive APIs. #1548 #1526
|
@sdelamo yeah, I understand that such a scenario is behind the original thinking of returning a Publisher. What is not clear to me from the docs at least, is it ok to put a blocking IO operation right inside If it's ok to place the blocking code there, in that case returning a publisher is only confusing. The only situation when anyone will use delayed publishing is if they want to optimize the amount of waiting threads. If it's not ok, it's well aligned with the reactive paradigm. But the fact that |
It is not ok to put blocking code. I think improving the javadoc is a good idea. if you are interesting in contributing such an improvement let me know. |
@sdelamo Yeah, I will open a docstring PR! |
Feature description
In recent versions AuthenticationProvider became non-reactive and the reactive version was deprecated.
It would be great to see TokenValidator to become non-reactive too or get an alternative non-reactive version.
Currently, it's not clear if a correct TokenValidator implementation can be blocking. And if it can, why TokenValidator have to return a Publisher.
The text was updated successfully, but these errors were encountered: