From 6a19aed667777f9af3db12a424e21f4751bca3d1 Mon Sep 17 00:00:00 2001 From: San Kim Date: Thu, 25 Jan 2024 16:54:06 +0900 Subject: [PATCH] =?UTF-8?q?[WEAV-63]=20=ED=86=A0=ED=81=B0=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/studentcenter/weave/bootstrap/adapter/api/AuthApi.kt | 4 ++-- .../weave/bootstrap/adapter/controller/AuthRestController.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/http/src/main/kotlin/com/studentcenter/weave/bootstrap/adapter/api/AuthApi.kt b/bootstrap/http/src/main/kotlin/com/studentcenter/weave/bootstrap/adapter/api/AuthApi.kt index 23bb9ef7..1bb8bd82 100644 --- a/bootstrap/http/src/main/kotlin/com/studentcenter/weave/bootstrap/adapter/api/AuthApi.kt +++ b/bootstrap/http/src/main/kotlin/com/studentcenter/weave/bootstrap/adapter/api/AuthApi.kt @@ -13,11 +13,11 @@ import org.springframework.web.bind.annotation.* interface AuthApi { @Operation(summary = "Social Login") - @GetMapping("/login/oauth2/code/{provider}") + @GetMapping("/login/oauth2/{provider}") @ResponseStatus(HttpStatus.OK) fun socialLogin( @PathVariable provider: SocialLoginProvider, - @RequestParam code: String + @RequestParam idToken: String ): SocialLoginResponse @Operation(summary = "Refresh Login Token") diff --git a/bootstrap/http/src/main/kotlin/com/studentcenter/weave/bootstrap/adapter/controller/AuthRestController.kt b/bootstrap/http/src/main/kotlin/com/studentcenter/weave/bootstrap/adapter/controller/AuthRestController.kt index f443d9f8..a95bc9c0 100644 --- a/bootstrap/http/src/main/kotlin/com/studentcenter/weave/bootstrap/adapter/controller/AuthRestController.kt +++ b/bootstrap/http/src/main/kotlin/com/studentcenter/weave/bootstrap/adapter/controller/AuthRestController.kt @@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RestController class AuthRestController: AuthApi { override fun socialLogin( provider: SocialLoginProvider, - code: String, + idToken: String, ): SocialLoginResponse { return SocialLoginResponse.Success( accessToken = "test_access_token",