hmkim 05-28
250528 김혜민 oauth2 일반회원 로그인 구글추가
@2b084dd77e0952eb97eeb374790f5ab3e8fa99b6
src/main/java/com/takensoft/common/oauth/handler/OAuth2AuthenticationFailureHandler.java
--- src/main/java/com/takensoft/common/oauth/handler/OAuth2AuthenticationFailureHandler.java
+++ src/main/java/com/takensoft/common/oauth/handler/OAuth2AuthenticationFailureHandler.java
@@ -50,6 +50,9 @@
     private String mapErrorMessage(AuthenticationException exception) {
         String message = exception.getMessage();
 
+        if (message == null) {
+            return "OAuth2 로그인에 실패했습니다.";
+        }
         if (message.contains("access_denied")) {
             return "사용자가 인증을 취소했습니다.";
         }
src/main/resources/application.yml
--- src/main/resources/application.yml
+++ src/main/resources/application.yml
@@ -91,8 +91,8 @@
 
           # 구글 OAuth2 설정
           google:
-            client-id: ${GOOGLE_CLIENT_ID:AIzaSyB0FcOqHUlubnQzozH0G4fENpoq1pq3BxQ}
-            client-secret: ${GOOGLE_CLIENT_SECRET:your_google_client_secret_here}
+            client-id: ${GOOGLE_CLIENT_ID:765599143887-79ga8lgcp83r1hg3s26eeidpubajokg9.apps.googleusercontent.com}
+            client-secret: ${GOOGLE_CLIENT_SECRET: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}
             redirect-uri: ${GOOGLE_REDIRECT_URI:http://localhost:9090/login/oauth2/code/google}
             authorization-grant-type: authorization_code
             scope: profile,email
Add a comment
List