Hi everyone,
I've wait for months to migrate one of our projects to vertx 4.
One of the main reasons to upgrade is that with vertx 3 graphql subscription authentication wasn't easy at all. We did some very bad "blocking" code to validate JWT passed during CONNECTION_INIT from the web client.
Now, I'll be so happy to remove that internal code with non-blocking validation of WebSocket message during the CONNECTION_INIT stage.
Use case is very simple:
* if the token is valid on CONNECTION_INIT everything is ok
* If the token is not valid I need to close/reject the connection
* JWT validation must be asynchronous (AuthenticationProvider)
I found the PR that was merged into vertx 4 milestone branch. During revision, see
github issue, some changes were applied. The problem is that I can't find any example that shows how to implement JWT validation, that is completely asynchronous, due to AuthenticationProvider method:
```java
Future<User> authenticate(JsonObject credentials)
```
Any tip/example is welcome
Thanks