-
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.
Misison, Step, PR 엔티티 설계 및 PR 조회 기능 (#12)
* feat: 깃허브 인증 및 PR 조회 기능 * refactor: PasswordEncoder 패키지 변경 * chore: env file 제거 * fix: 환경변수 값이 바인딩 되지 않는 문제 * feat: 로그인 기능 * fix: PR List 조회 기능 UnAuthorized 문제 * fix: Auth ArgumentResolver 등록 안되는 문제 * refactor: 레포별 모든 PR 조회 기능 컨트롤러 변경 * refactor: 변수 final 키워드 추가 * refactor: jwt payload memberId로 변경 * fix: Querydsl Qclass 빌드 문제 * feat: 현재 로그인한 유저의 미션에 대한 모든 PullRequest 조회 * feat: 레파지토리 이름을 입력 받으면 해당 레포지토리에 있는 로그인한 유저의 PR들을 동기화한다. * refactor: api path 소유격에서 소유대명사로 수정 * refactor: 동기화시 이미 존재하는 PR이라면 최신 정보로 수정만, 존재하지 않는다면 PR 생성 * refactor: 메서드명 수정 * refactor: GithubClientApi 상수 클래스로 관리 * refactor: Client 통신용 DTO 분리 * refactor: 문자열 포맷팅은 Constants 클래스에서 담당한다. * refactor: PR 동기화시 존재하지 않는 PR만 저장한다. * docs: 리팩터링 TODO * refactor: 토큰 발급 메서드명 변경 * chore: 메서드 개행 * chore: 필드 개행 * chore: 이메일 레디스 해쉬 삭제 * refactor: DTO 이름 통일 * refactor: JsonNaming 사용 * chore: final 키워드 추가 * chore: 리팩터링 TODO * chore: 메서드 개행 * chore: 사용하지 않는 import 제거 * fix: QClass 필드명 수정 * refactor: 토큰 조회시 token type이랑 같이 조회 * refactor: Type Enum 분리 * refactor: passwordEncoder 파라미터 이름 변경
- Loading branch information
1 parent
2e495a0
commit 939d184
Showing
82 changed files
with
1,315 additions
and
433 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
src/main/java/com/integrated/techhub/auth/application/client/GithubClient.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,19 @@ | ||
package com.integrated.techhub.auth.application.client; | ||
|
||
import com.integrated.techhub.auth.application.client.dto.response.GithubPrInfoResponse; | ||
import com.integrated.techhub.auth.application.client.dto.response.OAuthGithubUsernameResponse; | ||
import com.integrated.techhub.auth.application.client.dto.response.OAuthTokensResponse; | ||
|
||
import java.util.List; | ||
|
||
public interface GithubClient { | ||
|
||
OAuthTokensResponse getGithubTokens(final String code); | ||
|
||
OAuthTokensResponse getNewAccessToken(final String refreshToken); | ||
|
||
OAuthGithubUsernameResponse getGithubUsername(final String accessToken); | ||
|
||
List<GithubPrInfoResponse> getPrsByRepoName(final String accessToken, final String repo); | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/integrated/techhub/auth/application/client/GithubClientProperties.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,11 @@ | ||
package com.integrated.techhub.auth.application.client; | ||
|
||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
@ConfigurationProperties(prefix = "spring.security.oauth2.client.registration.github") | ||
public record GithubClientProperties ( | ||
String clientId, | ||
String clientSecret | ||
) { | ||
} |
Oops, something went wrong.