샘플 ClientId 수정 및 로그인 창 조정
- 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) <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
"Authority": "https://sso.hmac.kr/oidc",
|
"Authority": "https://sso.hmac.kr/oidc",
|
||||||
|
|
||||||
// 퍼블릭 클라이언트 ID (콘솔 '앱 자격 증명' 화면)
|
// 퍼블릭 클라이언트 ID (콘솔 '앱 자격 증명' 화면)
|
||||||
"ClientId": "c072532b-3483-4539-a21f-e77a9f6e2c7a",
|
"ClientId": "4e4c88fc-2b0a-4b8b-b9b5-fb407cdbbfac",
|
||||||
|
|
||||||
// 콘솔 '리디렉션 URI 설정'에 등록된 값과 문자 그대로 일치해야 함
|
// 콘솔 '리디렉션 URI 설정'에 등록된 값과 문자 그대로 일치해야 함
|
||||||
"RedirectUri": "http://127.0.0.1:8421/baron-sample/auth/callback",
|
"RedirectUri": "http://127.0.0.1:8421/baron-sample/auth/callback",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
|
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">
|
WindowStartupLocation="CenterScreen">
|
||||||
<Grid>
|
<Grid>
|
||||||
<wv2:WebView2 x:Name="webview" />
|
<wv2:WebView2 x:Name="webview" />
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ namespace BaronSoftware.SSO
|
|||||||
|
|
||||||
private static Task<CoreWebView2Environment> CreateWebView2EnvironmentAsync()
|
private static Task<CoreWebView2Environment> CreateWebView2EnvironmentAsync()
|
||||||
{
|
{
|
||||||
var userDataFolder = Path.Combine(Path.GetTempPath(), "BaronSSO", "WebView2");
|
var userDataFolder = Path.Combine(Path.GetTempPath(), "BaronSSO", "SSOWebView2");
|
||||||
return CoreWebView2Environment.CreateAsync(userDataFolder: userDataFolder);
|
return CoreWebView2Environment.CreateAsync(userDataFolder: userDataFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user