From bfeb467737fccad97fb56898d671b3c7fe9ecc74 Mon Sep 17 00:00:00 2001 From: vact19 Date: Fri, 23 Feb 2024 23:33:07 +0900 Subject: [PATCH] Chore. localhost redirect --- .../domain/auth/handler/OAuth2MemberSuccessHandler.java | 5 +++-- .../controller/GoogleCalendarApiServerController.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/codingbottle/calendar/domain/auth/handler/OAuth2MemberSuccessHandler.java b/src/main/java/com/codingbottle/calendar/domain/auth/handler/OAuth2MemberSuccessHandler.java index 453846f..5796492 100644 --- a/src/main/java/com/codingbottle/calendar/domain/auth/handler/OAuth2MemberSuccessHandler.java +++ b/src/main/java/com/codingbottle/calendar/domain/auth/handler/OAuth2MemberSuccessHandler.java @@ -55,8 +55,9 @@ private URI createURI(String verificationCode) { return UriComponentsBuilder .newInstance() - .scheme("https") - .host("www.jmgdh.duckdns.org") + .scheme("http") + .host("localhost") + .port(3000) .path("/oauth2/success") .queryParams(queryParams) .build() diff --git a/src/main/java/com/codingbottle/calendar/domain/schedule/controller/GoogleCalendarApiServerController.java b/src/main/java/com/codingbottle/calendar/domain/schedule/controller/GoogleCalendarApiServerController.java index df85fc4..1ed2039 100644 --- a/src/main/java/com/codingbottle/calendar/domain/schedule/controller/GoogleCalendarApiServerController.java +++ b/src/main/java/com/codingbottle/calendar/domain/schedule/controller/GoogleCalendarApiServerController.java @@ -26,6 +26,6 @@ public String authorizeGoogle() { @GetMapping("/callback") public void callback(@RequestParam("code") String code, HttpServletResponse response) throws IOException { calendarApiIntegrationService.scheduleIntegration(code); - response.sendRedirect("https://www.jmgdh.duckdns.org/test"); + response.sendRedirect("http://localhost:3000/test"); } }