-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Refactor/#164] Member, Security 개편 #176
Merged
Merged
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
03b89b4
[refactor/#164] DB 재설계로 인한 member 관련 Entity, VO 매핑 수정
whitem4rk b5f56ec
[refactor/#164] member VO, entity 코드 형식 개선
whitem4rk 2075659
[refactor/#164] 네이밍 변경으로 인한 호출 코드 변경
whitem4rk 4850970
[refactor/#164] 일부 attribute 네이밍 변경 롤백
whitem4rk 5282222
[refactor/#164] Role 이름 수정
whitem4rk d0f6376
[refactor/#164] o -> obj로 변경한것 롤백
whitem4rk 3ff43e8
[refactor/#164] Team 관련 코드 삭제
whitem4rk 35c21d0
[refactor/#164] Team 관련 코드 추가 삭제
whitem4rk 8e68eee
[refactor/#164] VO, Entity, Dto 네이밍 변경 및 롤백
whitem4rk 6fbd654
[refactor/#164] Exception 변수이름 수정
whitem4rk b734bfb
[refactor/#164] Dto 유효성 검증 어노테이션 추가
whitem4rk f8c274c
[refactor/#164] Role 이름, TestMember 객체 추가 및 수정
whitem4rk ff2f165
[refactor/#164] Grade 삭제
whitem4rk 8ea2ff8
[refactor/#164] Hierarchy 총무 추가
whitem4rk 4396f04
[refactor/#164] majorInfo VO, entity, DTO 테이블 매핑
whitem4rk f0f386d
[refactor/#164] social account 부분 매핑 수정
whitem4rk 1bb7351
[refactor/#164] 회원관리 엔드포인트 재설계로 인한 코드 삭제
whitem4rk f84b192
[refactor/#164] Page 객체로 반환하는 서비스
whitem4rk 4ab59f5
[refactor/#164] Page를 위한 Dto 생성
whitem4rk 3068fd6
[refactor/#164] Page를 위한 Dto 생성
whitem4rk 8ed5578
[refactor/#164] Directory 구조 변경
whitem4rk 4cc5b60
[refactor/#164] Repository 변경
whitem4rk 8b9513c
[refactor/#164] Role 수정
whitem4rk ccdfac8
[refactor/#164] WebSecurityConfigurerAdapter 수정
whitem4rk 0c0abec
[refactor/#164] swagger config 수정
whitem4rk 093b436
[refactor/#164] swagger config 수정 & JWT 인증기능 추가
whitem4rk c3c683e
[refactor/#164] jwt token 관련 수정
whitem4rk 49baf9d
[refactor/#164] oauth 인증 관련 수정
whitem4rk c9e820b
[refactor/#164] oauth 인증 관련 수정
whitem4rk 77d28ce
[refactor/#164] HttpSessionOAuth2AuthorizedClientRepository -> JdbcOA…
whitem4rk fa6c201
[refactor/#164] WebSecurityConfig 개편
whitem4rk 965479b
[refactor/#164] JWT OncePerRequestFilter -> AbstractAuthenticationPro…
whitem4rk 7967ab5
[refactor/#164] fixed redirect frontend url config
whitem4rk c2db6eb
[refactor/#164] Token refactor
whitem4rk a080a59
[refactor/#164] socialaccount deleted
whitem4rk 5606d5e
[refactor/#164] token include memberId
whitem4rk 25c3e8e
[refactor/#164] fix Jwt filter error
whitem4rk eb13254
[refactor/#164] WebSecurityConfigurerAdapter hasRole이 하나만 동작하는 문제 해결
whitem4rk 7ae7938
[refactor/#164] Security trivial settings
whitem4rk 62c9d67
[refactor/#164] Separate singUp from member
whitem4rk 91fedc3
[refactor/#164] MemberId -> StudentId로 인한 연관 코드 수정. 이후에 id, StudentId…
whitem4rk d501688
[refactor/#164] Refresh Token 발급 및 security 설정
whitem4rk f368c0e
[refactor/#164] Refresh Token 발급 및 security 설정
whitem4rk aeda084
[refactor/#164] Jwt exception handling 수정
whitem4rk 69fc19e
[refactor/#164] Delete trash file
whitem4rk 81d0206
[refactor/#164] Security Test code refactor
whitem4rk c9707d6
[refactor/#164] MajorInfo Test code refactor
whitem4rk a6b0878
[refactor/#164] Member VO Test code refactor
whitem4rk 8717f25
[refactor/#164] Data Masking ObjectMapper
whitem4rk fdc4899
[refactor/#164] Member VO refactor
whitem4rk bf00617
[refactor/#164] Role 관련 추가사항
whitem4rk ec90bdb
[refactor/#164] Member Service refactor
whitem4rk efcd60c
[refactor/#164] Member repository refactor
whitem4rk 8bfa324
[refactor/#164] Member Dto refactor
whitem4rk d097ebb
[refactor/#164] Member Controller refactor
whitem4rk cb7438f
[refactor/#164] 전반적인 Member Test code refactor
whitem4rk e795ce2
[refactor/#164] studentId(PK) -> memberId(인조키), studentId로 인한 연관 test…
whitem4rk a039c82
[refactor/#164] auth 관련 trivial 수정
whitem4rk 109a71e
[refactor/#164] 기존코드 변경으로 인한 Test code 임시 주석 처리
whitem4rk 8c22cc6
[refactor/#164] Member table에 grade column추가 및 수정
whitem4rk a2fcfa9
[refactor/#164] CAMELCASE 통일
whitem4rk 585f0c8
[refactor/#164] config 파일 에러로 인한 수정
whitem4rk a759dc2
[refactor/#164] Merge 이전 코드충돌 해결
whitem4rk 820327b
[refactor/#164] gradle 코드 오류 수정
whitem4rk 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/application.pid | ||
HELP.md | ||
.gradle | ||
build/ | ||
|
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
1 change: 1 addition & 0 deletions
1
module-auth/src/main/java/com/inhabas/api/auth/AuthProperties.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
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
29 changes: 29 additions & 0 deletions
29
module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/CustomOAuth2User.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,29 @@ | ||
package com.inhabas.api.auth.domain.oauth2; | ||
|
||
import org.springframework.security.core.GrantedAuthority; | ||
import org.springframework.security.oauth2.core.user.DefaultOAuth2User; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
|
||
public class CustomOAuth2User extends DefaultOAuth2User { | ||
|
||
private Long memberId; | ||
|
||
public CustomOAuth2User(Collection<? extends GrantedAuthority> authorities, | ||
Map<String, Object> attributes, | ||
String nameAttributeKey, | ||
Long memberId) { | ||
super(authorities, attributes, nameAttributeKey); | ||
this.memberId = memberId; | ||
} | ||
|
||
public Long getMemberId() { | ||
return memberId; | ||
} | ||
|
||
public void setMemberId(Long memberId) { | ||
this.memberId = memberId; | ||
} | ||
|
||
} |
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.
Oops, something went wrong.
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.
기존 사용 db인 mariadb로 변경 필요