From 1b018d3cabe76a12bd0c88fca6a5c81ad05f4543 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Sun, 3 Jul 2022 17:26:18 +0100 Subject: [PATCH] Exclude OIDC server connection details from OIDCException --- .../src/main/java/io/quarkus/oidc/runtime/OidcRecorder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcRecorder.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcRecorder.java index e7dfd845f042d..db5ab5769a780 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcRecorder.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcRecorder.java @@ -233,7 +233,8 @@ public static Optional toProxyOptions(OidcCommonConfig.Proxy proxy protected static OIDCException toOidcException(Throwable cause, String authServerUrl) { final String message = OidcCommonUtils.formatConnectionErrorMessage(authServerUrl); - return new OIDCException(message, cause); + LOG.debug(message); + return new OIDCException("OIDC Server is not available", cause); } protected static Uni createOidcProvider(OidcTenantConfig oidcConfig, TlsConfig tlsConfig, Vertx vertx) {