251117_01_ENH : internal 고정 JWT관련 내용 제거
This commit is contained in:
16
README.md
16
README.md
@@ -4,7 +4,6 @@ Spring Boot 기반 사내 서비스에서 공통으로 사용하는 기능들을
|
||||
`example-service` 같은 개별 서비스는 이 라이브러리를 통해 다음과 같은 기능을 **일관된 방식으로 재사용**할 수 있습니다.
|
||||
|
||||
- JWT 기반 인증/인가 (`com.kri.common.auth.jwt`)
|
||||
- 내부 고정 토큰 처리
|
||||
- 외부 API Key 인증 (`com.kri.common.auth.apikey`)
|
||||
- 공통 Web 예외 처리 & 로깅 (`com.kri.common.web`)
|
||||
- Redis 큐 헬퍼 (`com.kri.common.redis`)
|
||||
@@ -83,7 +82,7 @@ dependencies {
|
||||
KriCommon 은 크게 5가지 축으로 나뉩니다.
|
||||
|
||||
1. **인증/인가**
|
||||
- JWT, 내부 고정 토큰, API Key를 모두 공통 DTO(`JwtUserClaimsDto`) 기반으로 정규화
|
||||
- JWT, API Key를 모두 공통 DTO(`JwtUserClaimsDto`) 기반으로 정규화
|
||||
2. **Web 공통 기능**
|
||||
- 예외 처리, traceId/MDC, AOP 기반 service/handler 로깅
|
||||
3. **Redis 큐 지원**
|
||||
@@ -150,11 +149,6 @@ common:
|
||||
| `kri.auth.jwt.issuer` | String | `"kri-it"` | 토큰 발급자(issuer) |
|
||||
| `kri.auth.jwt.access-token-validity-seconds` | long | `24 * 3600` | Access Token 유효 시간(초) |
|
||||
| `kri.auth.jwt.refresh-token-validity-seconds` | long | `7 * 24 * 3600` | Refresh Token 유효 시간(초) |
|
||||
| `kri.auth.jwt.internal-fixed-token` | String | `null` | 내부 고정 토큰 문자열 (null이면 미사용) |
|
||||
| `kri.auth.jwt.internal-user-id` | String | `"INTERNAL_SYSTEM"` | 내부 토큰 계정 userId |
|
||||
| `kri.auth.jwt.internal-user-team` | String | `"SYSTEM"` | 내부 토큰 계정 team |
|
||||
| `kri.auth.jwt.internal-user-name` | String | `"Internal System"` | 내부 토큰 계정 이름 |
|
||||
| `kri.auth.jwt.internal-user-role` | Integer | `999` | 내부 토큰 계정 role 코드 |
|
||||
|
||||
### 4.2. `kri.auth.apikey` 속성 요약
|
||||
|
||||
@@ -213,7 +207,6 @@ JwtService 는 다음과 같은 역할을 합니다.
|
||||
2. **Refresh Token 발급**
|
||||
3. **토큰 파싱 및 검증**
|
||||
4. **토큰 → JwtUserClaimsDto/Authentication 변환**
|
||||
5. **내부 고정 토큰 처리**
|
||||
|
||||
핵심 메서드 요약:
|
||||
|
||||
@@ -243,13 +236,6 @@ public class JwtService {
|
||||
|
||||
// 토큰 -> Authentication
|
||||
public Authentication toAuthentication(String token) throws JwtException;
|
||||
|
||||
// 내부 고정 토큰인지 확인
|
||||
public boolean isInternalFixedToken(String rawToken);
|
||||
|
||||
// 내부 고정 토큰용 DTO / Authentication 생성
|
||||
public JwtUserClaimsDto createInternalUserClaimsDto();
|
||||
public Authentication createInternalAuthentication();
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user