Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] issue229 : refresh token #257

Merged
merged 24 commits into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
17cacfa
feat: Refresh Token 추가
tco0427 Aug 8, 2022
b105b4b
feat: 만료 토큰 예외 처리 및 액세스 토큰 재발급 구현
tco0427 Aug 9, 2022
195b324
feat: 토큰 재발급 요청 처리 구현
tco0427 Aug 9, 2022
722d777
feat: 리프래시 토큰 쿠키에 담기로 변경
tco0427 Aug 9, 2022
f907ff7
feat: RefreshToken을 통해 AccessToken 재발급 구현
tco0427 Aug 10, 2022
beeaaf0
test: 테스트 수정
tco0427 Aug 10, 2022
9c81970
feat: RefreshToken 저장 로직 추가
tco0427 Aug 10, 2022
59e7cae
feat: DB 검증 코드 추가
tco0427 Aug 10, 2022
6ac4158
fix: STRING 수정
tco0427 Aug 10, 2022
c8075b8
feat: index.adoc 수정
tco0427 Aug 10, 2022
16ff262
docs: index.adoc 수정
tco0427 Aug 10, 2022
61c6eaf
feat: 충돌 해결
tco0427 Aug 10, 2022
e328774
feat: Origin 설정
tco0427 Aug 10, 2022
d993981
feat: 로그아웃 기능 구현
tco0427 Aug 10, 2022
2ad2c9b
feat: 4001 코드 추가 & expiredTime 추가
tco0427 Aug 11, 2022
013715f
feat: 피드백 반영 및 application.yml 수정
tco0427 Aug 11, 2022
59caef8
feat: 쿠키 sameSite 제거 및 Transactional 명시
tco0427 Aug 12, 2022
bf7ea03
refactor: 테스트 코드 수정
tco0427 Aug 12, 2022
f6235b6
refactor: response DTO 네이밍 변경
tco0427 Aug 12, 2022
3e4c716
fix: INTERNAL_SERVER_ERROR -> UNAUTHORIZED 로 수정
tco0427 Aug 12, 2022
e3d8c52
refactor: 메소드 AuthAcceptanceTest 로 내림
tco0427 Aug 12, 2022
6d4eb1c
fix: exposedHeaders "Set-Cookie" 추가
tco0427 Aug 12, 2022
14a9603
Merge branch 'develop' of https://github.com/woowacourse-teams/2022-m…
tco0427 Aug 12, 2022
2e221e7
Merge branch 'develop' of https://github.com/woowacourse-teams/2022-m…
tco0427 Aug 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public void addCorsMappings(final CorsRegistry registry) {
.allowedOrigins("https://dev.moamoa.space", "https://moamoa.space")
.allowedMethods(ALLOW_METHODS)
.exposedHeaders(HttpHeaders.LOCATION)
.exposedHeaders("Set-Cookie")
.allowCredentials(true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import com.woowacourse.moamoa.WebMVCTest;
import com.woowacourse.moamoa.auth.service.AuthService;
import com.woowacourse.moamoa.auth.service.response.TokensResponse;

import com.woowacourse.moamoa.auth.service.AuthService;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.mock.mockito.MockBean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@
import com.woowacourse.moamoa.member.domain.repository.MemberRepository;
import com.woowacourse.moamoa.member.query.MemberDao;
import com.woowacourse.moamoa.member.service.MemberService;

import java.util.Optional;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired;

@RepositoryTest
class AuthServiceTest {
Expand Down