Skip to content

Commit

Permalink
Update WebClient used by DevServices for Keycloak to trust Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Mar 7, 2022
1 parent b2edb13 commit 71bd930
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpHeaders;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.client.WebClientOptions;
import io.vertx.mutiny.core.buffer.Buffer;
import io.vertx.mutiny.ext.web.client.HttpRequest;
import io.vertx.mutiny.ext.web.client.HttpResponse;
Expand All @@ -19,7 +20,10 @@ private OidcDevServicesUtils() {
}

public static WebClient createWebClient(Vertx vertx) {
return WebClient.create(new io.vertx.mutiny.core.Vertx(vertx));
WebClientOptions options = new WebClientOptions();
options.setTrustAll(true);
options.setVerifyHost(false);
return WebClient.create(new io.vertx.mutiny.core.Vertx(vertx), options);
}

public static String getPasswordAccessToken(WebClient client,
Expand Down

0 comments on commit 71bd930

Please sign in to comment.