Skip to content

Commit

Permalink
Merge pull request #24154 from sberyozkin/oidc_dev_console_tls_verifi…
Browse files Browse the repository at this point in the history
…cation

Update WebClient used by DevServices for Keycloak to trust Keycloak
  • Loading branch information
geoand authored Mar 8, 2022
2 parents b98c54c + 71bd930 commit f3a840b
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 f3a840b

Please sign in to comment.