Skip to content

[REFACTORING] JWT 서명 검증 로직 추가 #22

@AhnJoonSung

Description

@AhnJoonSung

작업 설명

기존에는 성능 최적화를 위해 서명 검증을 앞단에서 별도로 1회만 진행하고,
나머지 서비스에선 "verify_signature": False를 통해 중복 서명 검증을 하지 않는 것으로 구상하였으나,
앞단에서 1회만 처리하는 구조의 구현이 예상보다 복잡하여,
각 서비스에서 독자적으로 서명 검증을 하는 식으로 변경이 필요해졌습니다.

  • 파일 위치: config/middleware.py
  • 변경 예시:
    # CustomHttpMiddleware
    payload = jwt.decode(token, settings.SECRET_KEY, algorithms=["HS256"])
    
    # CustomWsMiddleware
    payload = jwt.decode(token, settings.SECRET_KEY, algorithms=["HS256"])

수정 이유 (선택 사항)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions