-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [fix] : TokenService 삭제 * [feat] : 소셜 로그인 성공 시 토큰 생성 로직 수정 - refreshToken 생성 추가 - refreshToken 생성 시 redis 저장 추가 * [feat] : Token 관련 에러코드 추가 * [feat] : 남은 만료시간 반환 메서드 추가 * [feat] : 로그아웃 로직 추가 * [feat] : DTO Valid 추가 * [fix] : logout HttpMethod 변경 및 RequestBody 추가 * [feat] : accessToken logout 확인 로직 추가 * [feat] : 토큰 재발급 로직 추가 * [refactor] : 변경감지를 이용한 ResponseDTO 생성 * [test] : Mocking을 이용한 Service 테스트 수정 * [feat] : 로그아웃 실패 검증 로직 추가 * [feat] : 로그아웃 에러코드 추가 * [fix] : 토큰 재발급 반환 타입 DTO 오류 수정 * [fix] : API '/' 누락 수정 * [feat] : 토큰 재발급 시 생성을 위한 인증 객체 추가 * [fix] : MeberService.class <-> TokenProvider.class 순환참조 해결 * [test] : 로그아웃, 토큰 재발급 단위테스트 추가 * [fix] : @AuthenticationPrincipal를 통해 획득한 인증 객체 타입 변경 * [test] : setUp시 refreshToken 생성 및 저장 추가 * [test] : MemberController 통합테스트 추가 * [test] : 각 테스트 후 redis 초기화 추가 * [feat] : 로그아웃/토큰 재발급 요청 DTO Valid Message 수정 * [feat] : 로그아웃 에러 코드 message 수정 * [feat] : 로그아웃 에러 코드 message 수정 * [style] : isOfficialEmailExists() 인라인 수정 * [refactor] : 메일 본문 내용 상수 선언을 통한 리팩토링 * [fix] : MailService <-> MemberService 순환 참조 위험성 제거를 위한 변경 - MailService가 MemberService가 아닌 MemberRepository를 의존하도록 변경 - 변경으로 인한 checkDuplicatedOfficialEmail() 로직 변경 및 ReadOnly 추가 * [fix] : throw 누락 수정 * [fix] : updateAdditionalInfo() 변경 감지에 의한 save() 로직 삭제 * [style] : 반환 변수명 수정(findMember -> foundMember) * [refactor] : Enum 재사용성을 위한 parseProviderFromSocialEmail() 로직 리팩토링 * [test] : TokenProviderTest 추가 * [rename] : isDuplicatedNickname() 닉네임 존재 여부 변수명 변경 * [test] : 실제 로직 변경으로 불필요해진 stub 제거 * [test] : 회원가입 API 통합 테스트를 위한 신규 회원 저장 로직 추가 * [test] : 실제 로직 변경으로 stub 변경 및 불필요한 mock 제거 * [test]: MemberFixture 객체 생성 메서드 추가 * [refactor] : 소셜 이메일을 통한 Provider 찾는 로직 변경 * [test] : parseProviderFromSocialEmail() 실제 로직 변경으로 인한 staticMock 추가 * [test] : Provider Test 작성
- Loading branch information
Showing
23 changed files
with
499 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/java/com/dnd/gongmuin/member/dto/request/LogoutRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.dnd.gongmuin.member.dto.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
public record LogoutRequest( | ||
@NotEmpty(message = "AccessToken을 입력해주세요.") | ||
String accessToken | ||
) { | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/dnd/gongmuin/member/dto/request/ReissueRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.dnd.gongmuin.member.dto.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
public record ReissueRequest( | ||
@NotEmpty(message = "AccessToken을 입력해주세요.") | ||
String accessToken | ||
) { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/dnd/gongmuin/member/dto/response/LogoutResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.dnd.gongmuin.member.dto.response; | ||
|
||
public record LogoutResponse( | ||
boolean result | ||
) { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/dnd/gongmuin/member/dto/response/ReissueResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.dnd.gongmuin.member.dto.response; | ||
|
||
public record ReissueResponse( | ||
String accessToken | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.