-
Notifications
You must be signed in to change notification settings - Fork 1
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
[feat] security jwt 를 이용한 로그인 및 회원가입 기능 추가 #31
Merged
Merged
Conversation
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
Oauth 및 jwt 의존성 추가
생성되는 PK 값 discussion에서 제안한 값으로 통일 id로 통일하되 컬럼 어노테이션 활용하여 id값 지정
login 및 signup response request dto 추가
bCryptPasswordEncoder authconfig에서 설정 하도록 변경
SpringSecurityConfig 설정 추가
security 설정 클래스 PrincipalDetails, AuthConfig 추가
querydsl generated gitignore 등록
JwtAuthenticationFilter 추가
JwtAuthorizationFilter 추가
JWT 설정 클래스들 추가 JwtKey, JwtProperties, JwtProvider, SigningKeyResolver 추가
jwt token test api 추가
login, testjwt http 파일 추가
appconfig에서passwordEncode bean을 등록 하고 Authconfig 에서 passwordEncode를 참조 하도록 변경
GlobalExceptionRestAdvice 수정
check-duplicated-email 추가
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🎯 목적
새 기능 (New Feature)
간략한 설명:
로그인 인가 권한이 필요한 경우 MemberController 에 구현된 test 메서드를 참고하여 코드를 구현하면 됨
로그인 인가 권한이 필요한 api를 이용할 경우 아래처럼 header에 토큰을 넣으면 됨
아래 코드는 test폴더 하위 http 폴더 내에서 확인 가능
🛠 작성/변경 사항
🔗 관련 이슈