From e6ad46f705be27980a899696a8ddcc8969203a31 Mon Sep 17 00:00:00 2001 From: Idddd <956020859@qq.com> Date: Thu, 4 Jun 2026 11:09:33 +0800 Subject: [PATCH] fix: login SSO HTTP client also reads TLS disable setting AuthManager.executeLogin() had disableTlsVerification hardcoded to false. Now reads httpDisableTlsVerification from settings, consistent with LlmProviderFactory. Co-Authored-By: Claude Opus 4.7 --- .../src/main/kotlin/org/openprojectx/ai/plugin/AuthManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin-idea/src/main/kotlin/org/openprojectx/ai/plugin/AuthManager.kt b/plugin-idea/src/main/kotlin/org/openprojectx/ai/plugin/AuthManager.kt index a05edb0..c44b42d 100644 --- a/plugin-idea/src/main/kotlin/org/openprojectx/ai/plugin/AuthManager.kt +++ b/plugin-idea/src/main/kotlin/org/openprojectx/ai/plugin/AuthManager.kt @@ -156,10 +156,11 @@ class AuthManager(private val project: Project) { } private fun executeLogin(config: TemplateRequestConfig, username: String, password: String): String { + val disableTls = LlmSettingsLoader.load(project).httpDisableTlsVerification return try { runBlocking { TemplateRequestExecutor( - HttpClients.shared(disableTlsVerification = false, timeoutSeconds = 60) + HttpClients.shared(disableTlsVerification = disableTls, timeoutSeconds = 60) ).execute( config = config, variables = mapOf(