use of io.vertx.ext.web.client.OAuth2WebClient in project vertx-web by vert-x3.
the class WebClientOauth2Examples method create.
public void create(Vertx vertx) {
WebClient client = WebClient.create(vertx);
OAuth2WebClient oauth2 = OAuth2WebClient.create(client, OAuth2Auth.create(vertx, new OAuth2Options())).withCredentials(new TokenCredentials("some.jwt.token"));
}
Aggregations