Merged
Conversation
qormoon
requested changes
Jul 7, 2025
Contributor
qormoon
left a comment
There was a problem hiding this comment.
그 filter 부분 잘 작동되는지, 예외처리 부분도 확인해서 캡처본 올려주면 좋을 듯!
| .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) | ||
| .authorizeHttpRequests(auth -> auth | ||
| .requestMatchers( | ||
| "/api/v1/**", |
Contributor
There was a problem hiding this comment.
이거 수정해야 할듯 /api/v1/** 이걸 모두 permitAll 시킨다는건 토큰 filter 안걸쳐서
Contributor
There was a problem hiding this comment.
로그인 안했을때의 경로만 permitAll 시켜두고 나머지는 filter 들어갈 수 있게 수정해야돼
This file contains hidden or 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
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.
📌 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