From 28273da5867c33b8fb53cfed0eacecdf47212eca Mon Sep 17 00:00:00 2001 From: Daybreak312 Date: Fri, 7 Jun 2024 23:27:01 +0900 Subject: [PATCH 1/7] =?UTF-8?q?FEAT=20::=20category=20=EC=BB=AC=EB=9F=BC?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/domain/pose/entity/PoseJpaEntity.kt | 6 ++++++ .../maeumgagym/application/domain/pose/mapper/PoseMapper.kt | 2 ++ .../maeumgagym/core/pose/dto/request/CreatePoseRequest.kt | 2 ++ .../maeumgagym/core/pose/dto/response/PoseDetailResponse.kt | 2 ++ .../maeumgagym/core/pose/dto/response/PoseInfoResponse.kt | 1 + src/main/kotlin/com/info/maeumgagym/core/pose/model/Pose.kt | 4 ++++ .../info/maeumgagym/core/pose/service/CreatePoseService.kt | 1 + .../controller/pose/dto/request/CreatePoseWebRequest.kt | 4 ++++ 8 files changed, 22 insertions(+) diff --git a/src/main/kotlin/com/info/maeumgagym/application/domain/pose/entity/PoseJpaEntity.kt b/src/main/kotlin/com/info/maeumgagym/application/domain/pose/entity/PoseJpaEntity.kt index 20f8c292..8f399eaf 100644 --- a/src/main/kotlin/com/info/maeumgagym/application/domain/pose/entity/PoseJpaEntity.kt +++ b/src/main/kotlin/com/info/maeumgagym/application/domain/pose/entity/PoseJpaEntity.kt @@ -10,6 +10,7 @@ import javax.persistence.Entity @Entity(name = TableNames.POSE_TABLE) class PoseJpaEntity( needMachine: Boolean, + category: MutableSet, simpleName: String, exactName: String, thumbnail: String, @@ -27,6 +28,11 @@ class PoseJpaEntity( var needMachine: Boolean = needMachine // 기구 운동인지 여부 protected set + @Convert(converter = StringAttributeConverter::class) + @Column(name = "category", updatable = true, nullable = false) + var category: MutableSet = category + protected set + @Column(name = "simple_name", length = 30, updatable = true, nullable = false) var simpleName: String = simpleName // 간단한 이름 protected set diff --git a/src/main/kotlin/com/info/maeumgagym/application/domain/pose/mapper/PoseMapper.kt b/src/main/kotlin/com/info/maeumgagym/application/domain/pose/mapper/PoseMapper.kt index 7bb103ee..4b03662c 100644 --- a/src/main/kotlin/com/info/maeumgagym/application/domain/pose/mapper/PoseMapper.kt +++ b/src/main/kotlin/com/info/maeumgagym/application/domain/pose/mapper/PoseMapper.kt @@ -9,6 +9,7 @@ class PoseMapper { fun toEntity(pose: Pose): PoseJpaEntity = pose.run { PoseJpaEntity( needMachine, + category, simpleName, exactName, thumbnail, @@ -26,6 +27,7 @@ class PoseMapper { fun toDomain(poseJpaEntity: PoseJpaEntity): Pose = poseJpaEntity.run { Pose( needMachine, + category, simpleName, exactName, thumbnail, diff --git a/src/main/kotlin/com/info/maeumgagym/core/pose/dto/request/CreatePoseRequest.kt b/src/main/kotlin/com/info/maeumgagym/core/pose/dto/request/CreatePoseRequest.kt index 5c332640..a0e0d8ce 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/pose/dto/request/CreatePoseRequest.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/pose/dto/request/CreatePoseRequest.kt @@ -4,6 +4,8 @@ data class CreatePoseRequest( val needMachine: Boolean, + val category: List, + val simpleName: String, val exactName: String, diff --git a/src/main/kotlin/com/info/maeumgagym/core/pose/dto/response/PoseDetailResponse.kt b/src/main/kotlin/com/info/maeumgagym/core/pose/dto/response/PoseDetailResponse.kt index d7bc8d9c..cd296c4d 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/pose/dto/response/PoseDetailResponse.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/pose/dto/response/PoseDetailResponse.kt @@ -4,6 +4,8 @@ data class PoseDetailResponse( val needMachine: Boolean, + val category: MutableSet, + val simpleName: String, val exactName: String, diff --git a/src/main/kotlin/com/info/maeumgagym/core/pose/dto/response/PoseInfoResponse.kt b/src/main/kotlin/com/info/maeumgagym/core/pose/dto/response/PoseInfoResponse.kt index f8908083..ae875414 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/pose/dto/response/PoseInfoResponse.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/pose/dto/response/PoseInfoResponse.kt @@ -2,6 +2,7 @@ package com.info.maeumgagym.core.pose.dto.response data class PoseInfoResponse( val id: Long, + val category: MutableSet, val needMachine: Boolean, val name: String, val simplePart: List, diff --git a/src/main/kotlin/com/info/maeumgagym/core/pose/model/Pose.kt b/src/main/kotlin/com/info/maeumgagym/core/pose/model/Pose.kt index 841db410..f54a93dc 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/pose/model/Pose.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/pose/model/Pose.kt @@ -7,6 +7,8 @@ data class Pose( val needMachine: Boolean, + val category: MutableSet, + val simpleName: String, val exactName: String, @@ -31,6 +33,7 @@ data class Pose( ) { fun toDetailResponse() = PoseDetailResponse( needMachine = needMachine, + category = category, simpleName = simpleName, exactName = exactName, thumbnail = thumbnail, @@ -45,6 +48,7 @@ data class Pose( fun toInfoResponse() = PoseInfoResponse( id = id!!, + category = category, needMachine = needMachine, name = exactName, simplePart = simplePart.toList(), diff --git a/src/main/kotlin/com/info/maeumgagym/core/pose/service/CreatePoseService.kt b/src/main/kotlin/com/info/maeumgagym/core/pose/service/CreatePoseService.kt index 82e551e9..b179ac63 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/pose/service/CreatePoseService.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/pose/service/CreatePoseService.kt @@ -17,6 +17,7 @@ internal class CreatePoseService( savePosePort.save( Pose( needMachine = needMachine, + category = category.toMutableSet(), simpleName = simpleName, exactName = exactName, thumbnail = thumbnail, diff --git a/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/dto/request/CreatePoseWebRequest.kt b/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/dto/request/CreatePoseWebRequest.kt index 2d661d1b..02013110 100644 --- a/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/dto/request/CreatePoseWebRequest.kt +++ b/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/dto/request/CreatePoseWebRequest.kt @@ -9,6 +9,9 @@ data class CreatePoseWebRequest( @field:NotNull(message = "null일 수 없습니다") val needMachine: Boolean?, + @field:NotNull(message = "null일 수 없습니다") + val category: List?, + @field:NotBlank(message = "null일 수 없습니다") val simpleName: String?, @@ -41,6 +44,7 @@ data class CreatePoseWebRequest( ) { fun toRequest(): CreatePoseRequest = CreatePoseRequest( needMachine = needMachine!!, + category = category!!, simpleName = simpleName!!, exactName = exactName!!, thumbnail = thumbnail!!, From effbcb39588cc355ee070211ffa84d2fb540081f Mon Sep 17 00:00:00 2001 From: Daybreak312 Date: Sat, 8 Jun 2024 11:37:23 +0900 Subject: [PATCH 2/7] =?UTF-8?q?REFACT=20::=20=EC=B6=94=EC=B2=9C=20?= =?UTF-8?q?=EC=8B=9C=20=EB=B6=84=EB=A5=98=20=EA=B8=B0=EC=A4=80=EC=9D=84=20?= =?UTF-8?q?simplePart=EC=97=90=EC=84=9C=20category=EB=A1=9C=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 --- .../service/ReadPosesRecommendationService.kt | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main/kotlin/com/info/maeumgagym/core/pose/service/ReadPosesRecommendationService.kt b/src/main/kotlin/com/info/maeumgagym/core/pose/service/ReadPosesRecommendationService.kt index 372317d2..0dd8e76e 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/pose/service/ReadPosesRecommendationService.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/pose/service/ReadPosesRecommendationService.kt @@ -21,17 +21,18 @@ class ReadPosesRecommendationService( // 사용자에게 추천할 자세 추출 readPosePort.readAllRandomLimit30().forEach { // 자세의 종류 - val partName = it.simplePart.first() - // 자세의 종류에 해당하는 자세들의 리스트 - var poses = recommendationPoses[partName] - // 만약 이번에 처음으로 자세들을 담은 리스트에 접근한다면 - if (poses == null) { - // 위 주석에서 언급했듯, 새로운 자세 종류이므로 초기화 진행 - recommendationPoses[partName] = mutableListOf() - poses = recommendationPoses[partName] + it.category.forEach { partName -> + // 자세의 종류에 해당하는 자세들의 리스트 + var poses = recommendationPoses[partName] + // 만약 이번에 처음으로 자세들을 담은 리스트에 접근한다면 + if (poses == null) { + // 위 주석에서 언급했듯, 새로운 자세 종류이므로 초기화 진행 + recommendationPoses[partName] = mutableListOf() + poses = recommendationPoses[partName] + } + // 자세 리스트에 추가 + poses!!.add(it) } - // 자세 리스트에 추가 - poses!!.add(it) } return PoseRecommendationListResponse( From d090a97858ffd18e0241f38e6b59a0a7cf353156 Mon Sep 17 00:00:00 2001 From: Daybreak312 Date: Sun, 9 Jun 2024 18:33:27 +0900 Subject: [PATCH 3/7] =?UTF-8?q?FIX=20::=20Get=20Body=20->=20Param,=20?= =?UTF-8?q?=EB=85=BC=EB=A6=AC=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/pose/port/in/ReadAllPoseUseCase.kt | 4 ++-- .../core/pose/service/ReadAllPoseService.kt | 10 +++++++--- .../presentation/controller/pose/PoseController.kt | 10 ++++++---- .../pose/dto/request/ReadAllPoseWebRequest.kt | 11 ----------- 4 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/dto/request/ReadAllPoseWebRequest.kt diff --git a/src/main/kotlin/com/info/maeumgagym/core/pose/port/in/ReadAllPoseUseCase.kt b/src/main/kotlin/com/info/maeumgagym/core/pose/port/in/ReadAllPoseUseCase.kt index 6b452e54..4a7a6b0c 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/pose/port/in/ReadAllPoseUseCase.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/pose/port/in/ReadAllPoseUseCase.kt @@ -1,9 +1,9 @@ package com.info.maeumgagym.core.pose.port.`in` -import com.info.maeumgagym.core.pose.dto.request.ReadAllPoseRequest import com.info.maeumgagym.core.pose.dto.response.PoseListResponse +import java.time.LocalDateTime interface ReadAllPoseUseCase { - fun readAll(req: ReadAllPoseRequest): PoseListResponse + fun readAll(lastUpdated: LocalDateTime?): PoseListResponse } diff --git a/src/main/kotlin/com/info/maeumgagym/core/pose/service/ReadAllPoseService.kt b/src/main/kotlin/com/info/maeumgagym/core/pose/service/ReadAllPoseService.kt index e6da376e..853105d5 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/pose/service/ReadAllPoseService.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/pose/service/ReadAllPoseService.kt @@ -2,18 +2,22 @@ package com.info.maeumgagym.core.pose.service import com.info.maeumgagym.common.annotation.responsibility.ReadOnlyUseCase import com.info.maeumgagym.common.exception.MaeumGaGymException -import com.info.maeumgagym.core.pose.dto.request.ReadAllPoseRequest import com.info.maeumgagym.core.pose.dto.response.PoseListResponse import com.info.maeumgagym.core.pose.port.`in`.ReadAllPoseUseCase import com.info.maeumgagym.core.pose.port.out.ReadPosePort +import java.time.LocalDateTime @ReadOnlyUseCase internal class ReadAllPoseService( private val readPosePort: ReadPosePort ) : ReadAllPoseUseCase { - override fun readAll(req: ReadAllPoseRequest): PoseListResponse { - if (!req.lastUpdated.isBefore(readPosePort.getLastModifiedAt())) { + override fun readAll(lastUpdated: LocalDateTime?): PoseListResponse { + // 클라이언트의 자세 정보가 최신인지를 판단하는 로직 + // 클라이언트의 마지막 조회 시점이 서버의 마지막 변경 시점보다 이후인 경우 No Content 반환 + // => 클라이언트의 정보가 가장 최신인 경우 + // 클라이언트가 한 번도 조회한 적 없는 경우 정보 반환 (lastUpdated == null) + if (lastUpdated?.isAfter(readPosePort.getLastModifiedAt()) ?: false) { throw MaeumGaGymException.NO_CONTENT } diff --git a/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/PoseController.kt b/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/PoseController.kt index 85fc9039..9d0c3443 100644 --- a/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/PoseController.kt +++ b/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/PoseController.kt @@ -10,12 +10,13 @@ import com.info.maeumgagym.core.pose.port.`in`.* import com.info.maeumgagym.core.user.model.Role import com.info.maeumgagym.presentation.common.locationheader.LocationHeaderManager import com.info.maeumgagym.presentation.controller.pose.dto.request.CreatePoseWebRequest -import com.info.maeumgagym.presentation.controller.pose.dto.request.ReadAllPoseWebRequest import io.swagger.v3.oas.annotations.Operation import io.swagger.v3.oas.annotations.tags.Tag +import org.springframework.format.annotation.DateTimeFormat import org.springframework.http.HttpStatus import org.springframework.validation.annotation.Validated import org.springframework.web.bind.annotation.* +import java.time.LocalDateTime import javax.validation.Valid import javax.validation.constraints.NotBlank import javax.validation.constraints.Positive @@ -52,10 +53,11 @@ private class PoseController( @RequireAuthentication @GetMapping("/all") fun readAll( - @RequestBody @Valid - readAllPoseWebRequest: ReadAllPoseWebRequest - ): PoseListResponse = readAllPoseUseCase.readAll(readAllPoseWebRequest.toRequest()) + @RequestParam(value = "last_updated") + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + lastUpdated: LocalDateTime? + ): PoseListResponse = readAllPoseUseCase.readAll(lastUpdated) @Operation(summary = "자세 id 조회 API") @RequireAuthentication diff --git a/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/dto/request/ReadAllPoseWebRequest.kt b/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/dto/request/ReadAllPoseWebRequest.kt deleted file mode 100644 index 27d1efec..00000000 --- a/src/main/kotlin/com/info/maeumgagym/presentation/controller/pose/dto/request/ReadAllPoseWebRequest.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.info.maeumgagym.presentation.controller.pose.dto.request - -import com.info.maeumgagym.core.pose.dto.request.ReadAllPoseRequest -import java.time.LocalDateTime - -data class ReadAllPoseWebRequest( - val lastUpdated: LocalDateTime -) { - fun toRequest(): ReadAllPoseRequest = - ReadAllPoseRequest(lastUpdated) -} From c36755bfbc8b778dc58754878bd43cdaae2c80f6 Mon Sep 17 00:00:00 2001 From: Daybreak312 Date: Tue, 11 Jun 2024 16:57:07 +0900 Subject: [PATCH 4/7] =?UTF-8?q?BURN=20::=20IP=20=EC=9D=B8=EC=A6=9D=20?= =?UTF-8?q?=ED=95=B4=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt b/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt index 357e639d..54fa6958 100644 --- a/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt +++ b/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt @@ -46,9 +46,9 @@ internal class MaeumgagymTokenValidatorImpl( throw AuthenticationException.EXPIRED_TOKEN } - if (currentRequestContext.getCurrentRequest().remoteAddr != maeumgagymToken.ip) { - throw AuthenticationException.WRONG_USER_TOKEN - } +// if (currentRequestContext.getCurrentRequest().remoteAddr != maeumgagymToken.ip) { +// throw AuthenticationException.WRONG_USER_TOKEN +// } } private fun getAccessTokenExpireAt(baseTime: LocalDateTime): LocalDateTime = From e3f38fbfe67e911b384ccbc717ca3c74db2d46c5 Mon Sep 17 00:00:00 2001 From: Daybreak312 Date: Tue, 11 Jun 2024 16:58:31 +0900 Subject: [PATCH 5/7] =?UTF-8?q?ANNO=20::=20IP=20=EC=9D=B8=EC=A6=9D=20?= =?UTF-8?q?=ED=95=B4=EC=A0=9C=20=EC=A3=BC=EC=84=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt b/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt index 54fa6958..c176182a 100644 --- a/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt +++ b/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt @@ -46,6 +46,8 @@ internal class MaeumgagymTokenValidatorImpl( throw AuthenticationException.EXPIRED_TOKEN } + // 발급 대상과 사용자의 IP 주소를 확인하는 로직 + // 사용자의 네트워크 환경에 따라 변동될 수 있으므로, 해당 인증은 제거됨 // if (currentRequestContext.getCurrentRequest().remoteAddr != maeumgagymToken.ip) { // throw AuthenticationException.WRONG_USER_TOKEN // } From 65e1da3d8284529cf107df29345c44d2a2068dcf Mon Sep 17 00:00:00 2001 From: Daybreak312 Date: Wed, 12 Jun 2024 18:08:52 +0900 Subject: [PATCH 6/7] FIX :: Field Name.. --- .../maeumgagym/core/user/dto/request/UpdateUserInfoRequest.kt | 2 +- .../maeumgagym/core/user/service/UpdateUserInfoService.kt | 2 +- .../controller/user/dto/UpdateUserInfoWebRequest.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/info/maeumgagym/core/user/dto/request/UpdateUserInfoRequest.kt b/src/main/kotlin/com/info/maeumgagym/core/user/dto/request/UpdateUserInfoRequest.kt index 9a04494a..41b4211b 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/user/dto/request/UpdateUserInfoRequest.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/user/dto/request/UpdateUserInfoRequest.kt @@ -6,5 +6,5 @@ data class UpdateUserInfoRequest( val nickname: String, val weight: Double, val height: Double, - val genderModel: GenderModel + val gender: GenderModel ) diff --git a/src/main/kotlin/com/info/maeumgagym/core/user/service/UpdateUserInfoService.kt b/src/main/kotlin/com/info/maeumgagym/core/user/service/UpdateUserInfoService.kt index 5e66be2d..233a2670 100644 --- a/src/main/kotlin/com/info/maeumgagym/core/user/service/UpdateUserInfoService.kt +++ b/src/main/kotlin/com/info/maeumgagym/core/user/service/UpdateUserInfoService.kt @@ -29,7 +29,7 @@ internal class UpdateUserInfoService( physicalInfoModel = PhysicalInfoModel( weight = weight, height = height, - genderModel = genderModel + genderModel = gender ) ) } diff --git a/src/main/kotlin/com/info/maeumgagym/presentation/controller/user/dto/UpdateUserInfoWebRequest.kt b/src/main/kotlin/com/info/maeumgagym/presentation/controller/user/dto/UpdateUserInfoWebRequest.kt index 2f674230..ae9123e1 100644 --- a/src/main/kotlin/com/info/maeumgagym/presentation/controller/user/dto/UpdateUserInfoWebRequest.kt +++ b/src/main/kotlin/com/info/maeumgagym/presentation/controller/user/dto/UpdateUserInfoWebRequest.kt @@ -19,13 +19,13 @@ data class UpdateUserInfoWebRequest( @field:DecimalMax(value = "300.0", message = "신장은 300.0 이하여야 합니다.") val height: Double, - val genderModel: GenderModel + val gender: GenderModel ) { fun toRequest(): UpdateUserInfoRequest = UpdateUserInfoRequest( nickname = nickname, height = height, weight = weight, - genderModel = genderModel + gender = gender ) } From 210077fb83be7d13949b02ee58fa8bb011c5b0e5 Mon Sep 17 00:00:00 2001 From: Daybreak312 Date: Wed, 12 Jun 2024 18:15:10 +0900 Subject: [PATCH 7/7] REFACT :: ktlintFormat --- .../security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt b/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt index c176182a..19d3f4d0 100644 --- a/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt +++ b/src/main/kotlin/com/info/maeumgagym/security/mgtoken/impl/MaeumgagymTokenValidatorImpl.kt @@ -46,8 +46,8 @@ internal class MaeumgagymTokenValidatorImpl( throw AuthenticationException.EXPIRED_TOKEN } - // 발급 대상과 사용자의 IP 주소를 확인하는 로직 - // 사용자의 네트워크 환경에 따라 변동될 수 있으므로, 해당 인증은 제거됨 + // 발급 대상과 사용자의 IP 주소를 확인하는 로직 + // 사용자의 네트워크 환경에 따라 변동될 수 있으므로, 해당 인증은 제거됨 // if (currentRequestContext.getCurrentRequest().remoteAddr != maeumgagymToken.ip) { // throw AuthenticationException.WRONG_USER_TOKEN // }