From a5bb4032ddfbacf1ba1c2b83b2d36616819aad1d Mon Sep 17 00:00:00 2001 From: Chanhae Lee Date: Sat, 7 Feb 2026 16:12:07 +0900 Subject: [PATCH] =?UTF-8?q?refactor(auth):=20=EC=86=8C=EC=85=9C=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=8B=9C=20=EB=8B=A4=EB=A5=B8=20?= =?UTF-8?q?=EA=B3=84=EC=A0=95=20=EC=84=A0=ED=83=9D=20=EA=B0=80=EB=8A=A5?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 구글은 prompt=select_account 파라미터 추가, 네이버는 auth_type=reauthenticate 파라미터 추가 --- .../domain/auth/infra/oauth/client/GoogleOAuth2Client.java | 3 ++- .../domain/auth/infra/oauth/client/NaverOAuth2Client.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/devkor/ifive/nadab/domain/auth/infra/oauth/client/GoogleOAuth2Client.java b/src/main/java/com/devkor/ifive/nadab/domain/auth/infra/oauth/client/GoogleOAuth2Client.java index 15163c31..9701d743 100644 --- a/src/main/java/com/devkor/ifive/nadab/domain/auth/infra/oauth/client/GoogleOAuth2Client.java +++ b/src/main/java/com/devkor/ifive/nadab/domain/auth/infra/oauth/client/GoogleOAuth2Client.java @@ -34,7 +34,8 @@ public String buildAuthorizationUrl(String state) { "&redirect_uri=" + googleProperties.getRedirectUri() + "&response_type=code" + "&scope=openid%20email" + - "&state=" + state; + "&state=" + state + + "&prompt=select_account"; // 매번 계정 선택 화면 표시 } // Access Token 발급 diff --git a/src/main/java/com/devkor/ifive/nadab/domain/auth/infra/oauth/client/NaverOAuth2Client.java b/src/main/java/com/devkor/ifive/nadab/domain/auth/infra/oauth/client/NaverOAuth2Client.java index cbbcfdc1..e5f1fb31 100644 --- a/src/main/java/com/devkor/ifive/nadab/domain/auth/infra/oauth/client/NaverOAuth2Client.java +++ b/src/main/java/com/devkor/ifive/nadab/domain/auth/infra/oauth/client/NaverOAuth2Client.java @@ -33,7 +33,8 @@ public String buildAuthorizationUrl(String state) { "?response_type=code" + "&client_id=" + naverProperties.getClientId() + "&redirect_uri=" + naverProperties.getRedirectUri() + - "&state=" + state; + "&state=" + state + + "&auth_type=reauthenticate"; // 매번 로그인 화면 표시 (재인증) } // Access Token 발급