feat: 리소스 서버 보안 설정 및 테스트 환경 구축#19
Merged
DongHyeonka merged 1 commit intoSynapsesa:developfrom Jun 20, 2025
Merged
Conversation
OAuth2 리소스 서버 기능을 위한 보안 설정을 추가하고, 관련 통합 테스트 환경을 구축합니다. - `ResourceServerConfig`를 추가하여 `/api/internal/**` 경로에 대한 JWT 기반의 접근 제어를 설정합니다. - `SecurityConfig`와 충돌을 피하기 위해 `@Order`를 사용하여 필터 체인의 우선순위를 명시적으로 지정합니다. - `ResourceServerIntegrationTest`를 작성하여 JWT 유효성, 만료, scope에 따른 API 접근 시나리오를 검증합니다. - 테스트 환경에서 JWT 만료 시간 검증이 동작하도록 `application-test.yml`에 `issuer-uri`를 추가하고, 테스트용 API 컨트롤러(`InternalApiController`)를 구현합니다.
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.
📌 관련 이슈
✨ PR 작업 내용
OAuth2 리소스 서버 기능을 위한 보안 설정을 추가하고, 관련 통합 테스트 환경을 구축합니다.
ResourceServerConfig를 추가하여/api/internal/**경로에 대한 JWT 기반의 접근 제어를 설정합니다.SecurityConfig와 충돌을 피하기 위해@Order를 사용하여 필터 체인의 우선순위를 명시적으로 지정합니다.ResourceServerIntegrationTest를 작성하여 JWT 유효성, 만료, scope에 따른 API 접근 시나리오를 검증합니다.application-test.yml에issuer-uri를 추가하고, 테스트용 API 컨트롤러(InternalApiController)를 구현합니다.이미지 첨부
다음 할 일