feat: security 적용 #16
Merged
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.
📌 Issue number and Link
#13 Spring Security 설정에 JWT 인증 필터(JwtAuthenticationFilter) 적용
✏️ Summary
SecurityConfig 클래스 내에 JwtAuthenticationFilter를 Spring Security 필터 체인에 적용했습니다.
JwtAuthenticationFilter가 모든 요청마다 JWT를 검사하고 인증 객체를 등록시키도록 구성했습니다.
전체적인 흐름
📝 Changes
jwt/에 JwtAuthenticationFilter와 JwtTokenProvider를 위치시켰습니다."/api/v1/**"에 대한 모든 authorizeHttpRequests를 허용시키도록 설정했습니다.String role = "ROLE_USER";로 하드코딩했습니다.🔎 PR Type
What kind of change does this PR introduce?
📚 Other information