Skip to content
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

Clarify non-blocking requirements in TokenValidator#validateToken javadoc #1617

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public interface TokenValidator<T> extends Ordered {
/**
* Validates the provided token and returns the authentication state.
*
* <p> An implementation of this method should never block
* (for example, waiting for a result of an IO operation) as it's called from the event loop.
* Instead, it should immediately return a Publisher that is filled with an authentication result
* when the result is available.
*
* @param token The token string
* @param request The current request (or null)
* @return An authentication publisher. If the publisher emits an error, no further validators will
Expand Down
Loading