261012_01_ENH: RequestUserContext Swagger 입력 숨김 처리

This commit is contained in:
2026-10-12 17:17:09 +09:00
parent 65e31079ac
commit 7cd170fe6e
7 changed files with 16 additions and 1 deletions

View File

@@ -99,6 +99,8 @@ import com.kri.common.feature.web.RequestUserContext;
컨트롤러 파라미터로 선언하면 현재 인증 사용자와 client IP를 받을 수 있습니다. `JwtService` Bean이 있을 때 `RequestUserContextArgumentResolver`가 자동 등록됩니다.
Swagger 자동 구성이 활성화되면 `RequestUserContext`는 요청 입력 문서에서 제외됩니다. `authenticated`, `clientIp`, `userRole` 등의 입력 항목은 표시되지 않으며, 실제 요청의 인증 정보와 IP 주입 동작은 유지됩니다.
```java
@GetMapping("/me")
public Object me(RequestUserContext user) {
@@ -812,6 +814,7 @@ other paths require both an allowed client IP and authentication. Exact IPs, CID
- API Key admin API가 활성화되면 내부 admin endpoint package도 scan
- Swagger UI/API docs 접근 IP 제한
- `CodeEnum` 구현 enum의 schema/parameter 설명 보강
- 서버가 주입하는 `RequestUserContext`를 요청 입력 문서에서 제외
### `kri.web`