Search in sources :

Example 1 with OAuth2WebClient

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"));
}
Also used : WebClient(io.vertx.ext.web.client.WebClient) OAuth2WebClient(io.vertx.ext.web.client.OAuth2WebClient) OAuth2WebClient(io.vertx.ext.web.client.OAuth2WebClient) OAuth2Options(io.vertx.ext.auth.oauth2.OAuth2Options) TokenCredentials(io.vertx.ext.auth.authentication.TokenCredentials)

Aggregations

TokenCredentials (io.vertx.ext.auth.authentication.TokenCredentials)1 OAuth2Options (io.vertx.ext.auth.oauth2.OAuth2Options)1 OAuth2WebClient (io.vertx.ext.web.client.OAuth2WebClient)1 WebClient (io.vertx.ext.web.client.WebClient)1