-
Notifications
You must be signed in to change notification settings - Fork 0
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
액세스 토큰 만료시 Refresh 하는 기능 구현 #43
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6cd3748
chore(config): enable OpenFeign
jacobhboy 65ae96f
chore(config): OpenFeign 설정 변경
jacobhboy 00eb08a
chore(build): jwt 의존성 추가
jacobhboy 6018394
chore(yml): jwt 설정 추가
jacobhboy 660068e
feat(auth): 구글 auth feign 추가
jacobhboy 5aa78ae
feat(auth): 구글 auth로 로그인 구현
jacobhboy dfbdb8f
feat(auth): 토큰 발급
jacobhboy 20105d5
feat(user): 유저 추가 혹은 업데이트 구현
jacobhboy 7887bd0
feat(auth): jwt credential 추가
jacobhboy 121913e
feat(user): email 추가
jacobhboy a9fc11d
feat(auth): exception들 추가
jacobhboy 0b4c6e1
feat(user): Role 제거
jacobhboy 1dcb6b4
feat(auth): dto 추가
jacobhboy d880e66
chore(merge): 머지 하였음
jacobhboy aefb008
feat(user): Role 추가
jacobhboy e768859
feat(profile): getCurrentUser 추가
jacobhboy d2b50d2
feat(comment): getCurrentUser 추가
jacobhboy 57c1208
feat(like): getCurrentUser 추가
jacobhboy fb3b48c
feat(auth): 현재 사용자를 저장하는 authRepository 구현
jacobhboy 0b423f5
feat(auth): 인터셉터 구현
jacobhboy 7270f7c
feat(user): 아이디로 유저 조회하는 기능 추가
jacobhboy a854d44
feat(auth): extract가 token을 받도록 변경
jacobhboy d972cd5
feat(auth): access token을 refresh하는 기능 구현
jacobhboy f9dead8
fix(auth): merge conflict 해결
jacobhboy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 6 additions & 0 deletions
6
src/main/java/com/sickgyun/server/auth/presentation/dto/RefreshTokenRequest.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.sickgyun.server.auth.presentation.dto; | ||
|
||
public record RefreshTokenRequest( | ||
String refreshToken | ||
) { | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/sickgyun/server/user/service/implementation/UserReader.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,21 @@ | ||
package com.sickgyun.server.user.service.implementation; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
import com.sickgyun.server.user.domain.User; | ||
import com.sickgyun.server.user.domain.repository.UserRepository; | ||
import com.sickgyun.server.user.exception.UserNotFoundException; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class UserReader { | ||
private final UserRepository userRepository; | ||
|
||
public User readUser(Long id) { | ||
return userRepository.findById(id) | ||
.orElseThrow(() -> new UserNotFoundException(id)); | ||
} | ||
|
||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
깔쌈하네요