Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
⛏ 작업 사항
@WebMvcTest
설정이 일부 변경되었습니다. 기존에 셋업 메서드를 통해서 인증 객체를 미리 설정하는 것에서 JWT필터를 적용하여 직접 accessToken을 헤더에 추가하는 방식으로 변경하였습니다.@LoginUser
를 사용한다면mockMvc.perform(~).header(AUTHORIZATION, accessToken)
을 추가해주세요.BaseControllerTest
에 필드에Authorization
과accessToken
을 추가해두었기 때문에 앞에 작성한 코드처럼 작성하시면 됩니다.📝 작업 요약
BaseControllerTest
인증 객체 설정 제거,JwtAuthenticationFilter
적용 및 자식 테스트 클래스에 반영RestTemplateOAuthClient
회원 연동 해제 시 oauth2 데이터 삭제 메서드 호출 추가WebSecurityConfig
유저 role에 따라 api 권한 검증 추가💡 관련 이슈