Skip to content

[feat] Spring Security 401·403 커스텀 예외 처리 추가#31

Open
seejaewook456-maker wants to merge 4 commits into
Leets-Official:mainfrom
seejaewook456-maker:feature/user-response
Open

[feat] Spring Security 401·403 커스텀 예외 처리 추가#31
seejaewook456-maker wants to merge 4 commits into
Leets-Official:mainfrom
seejaewook456-maker:feature/user-response

Conversation

@seejaewook456-maker

@seejaewook456-maker seejaewook456-maker commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

작업 내용

  1. SecurityConfig의 테스트용 /api/** 설정을 제거했습니다.
  2. Spring Security 인증 실패(401) 및 인가 실패(403)에 대한 예외 처리를 추가했습니다. 관련해서 COMMON_401_1, COMMON_403_1 커스텀 에러 코드를 사용했습니다.
  3. 인증이 필요한 API의 Swagger에 401 응답 명세를 추가했습니다.
  4. User 엔티티의 deletedAt 속성을 제거 했습니다.

관련 이슈

작업 유형

  • feat: 새로운 기능 추가
  • fix: 버그 또는 오류 수정
  • docs: 문서 수정
  • refactor: 코드 구조 개선
  • chore: 설정, 빌드, 기타 작업

요청 / 응답 예시

401 Response
{
"isSuccess": false,
"code": "COMMON_401_1",
"message": "인증이 필요합니다.",
"data": null
}

403 Response
{
"isSuccess": false,
"code": "COMMON_403_1",
"message": "해당 요청에 대한 접근 권한이 없습니다.",
"data": null
}

@seejaewook456-maker seejaewook456-maker self-assigned this Jul 23, 2026
@seejaewook456-maker seejaewook456-maker added the feat New feature or request label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] Spring Security 401·403 커스텀 예외 처리 추가

1 participant