From 45664bdb65207c697335df29dd10b44bff44fec2 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Fri, 10 Oct 2025 21:55:53 +0800 Subject: [PATCH 1/2] enhance error log --- .../src/ipc/network/authorize-user-in-window.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js b/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js index 4c671fb62..62dcf3117 100644 --- a/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js +++ b/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js @@ -33,7 +33,12 @@ const authorizeUserInWindow = ({ authorizeUrl, callbackUrl, session, additionalH // Ensure the browser window complies with "SSL/TLS Certificate Verification" preference window.webContents.on('certificate-error', (event, url, error, certificate, callback) => { event.preventDefault(); - callback(!preferencesUtil.shouldVerifyTls()); + const shouldAllow = !preferencesUtil.shouldVerifyTls(); + if (!shouldAllow) { + console.error(`Bruno OAuth: SSL Certificate verification failed for ${url}. Error: ${error}`); + console.error('Bruno OAuth: Disable "SSL/TLS Certificate Verification" in settings to proceed with OAuth flows that use invalid certificates.'); + } + callback(shouldAllow); }); const { session: webSession } = window.webContents; From 74f0f677956124dc5ee01374e8d08c0fe4e81e4a Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Sat, 11 Oct 2025 17:08:09 +0530 Subject: [PATCH 2/2] Update error message for SSL/TLS certificate verification --- .../bruno-electron/src/ipc/network/authorize-user-in-window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js b/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js index 62dcf3117..26e6960d7 100644 --- a/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js +++ b/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js @@ -36,7 +36,7 @@ const authorizeUserInWindow = ({ authorizeUrl, callbackUrl, session, additionalH const shouldAllow = !preferencesUtil.shouldVerifyTls(); if (!shouldAllow) { console.error(`Bruno OAuth: SSL Certificate verification failed for ${url}. Error: ${error}`); - console.error('Bruno OAuth: Disable "SSL/TLS Certificate Verification" in settings to proceed with OAuth flows that use invalid certificates.'); + console.error('Bruno OAuth: Disable "SSL/TLS Certificate Verification" in settings to proceed with OAuth flows that use self-signed certificates.'); } callback(shouldAllow); });