From 2af3bf67dbd36498555d8292d3e6e37c8748745f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=EC=98=81?= Date: Tue, 7 Jul 2026 14:42:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=98=ED=94=8C=20ClientId=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=B0=BD?= =?UTF-8?q?=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - appsettings.json: ClientId를 콘솔 등록값(4e4c88fc-...)으로 수정해 invalid_client 해결 - LoginWindow.xaml: 로그인 창 크기 조정 (520x760 → 1200x700) - LoginWindow.xaml.cs: WebView2 UserDataFolder 이름 변경 (WebView2 → SSOWebView2) Co-Authored-By: Claude Opus 4.8 (1M context) --- BaronSoftware.SSO.Sample/appsettings.json | 2 +- BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml | 2 +- BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BaronSoftware.SSO.Sample/appsettings.json b/BaronSoftware.SSO.Sample/appsettings.json index e51af79..07fa915 100644 --- a/BaronSoftware.SSO.Sample/appsettings.json +++ b/BaronSoftware.SSO.Sample/appsettings.json @@ -9,7 +9,7 @@ "Authority": "https://sso.hmac.kr/oidc", // 퍼블릭 클라이언트 ID (콘솔 '앱 자격 증명' 화면) - "ClientId": "c072532b-3483-4539-a21f-e77a9f6e2c7a", + "ClientId": "4e4c88fc-2b0a-4b8b-b9b5-fb407cdbbfac", // 콘솔 '리디렉션 URI 설정'에 등록된 값과 문자 그대로 일치해야 함 "RedirectUri": "http://127.0.0.1:8421/baron-sample/auth/callback", diff --git a/BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml b/BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml index 1e7df0c..28be64a 100644 --- a/BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml +++ b/BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml @@ -3,7 +3,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf" - Title="BARON 로그인" Height="760" Width="520" + Title="BARON 로그인" Height="700" Width="1200" WindowStartupLocation="CenterScreen"> diff --git a/BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml.cs b/BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml.cs index 0c50f94..ef89c4f 100644 --- a/BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml.cs +++ b/BaronSoftware.SSO/Features/LoginWindow/LoginWindow.xaml.cs @@ -169,7 +169,7 @@ namespace BaronSoftware.SSO private static Task CreateWebView2EnvironmentAsync() { - var userDataFolder = Path.Combine(Path.GetTempPath(), "BaronSSO", "WebView2"); + var userDataFolder = Path.Combine(Path.GetTempPath(), "BaronSSO", "SSOWebView2"); return CoreWebView2Environment.CreateAsync(userDataFolder: userDataFolder); }