Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

[REQ] 인가 로직 security로 이전 #73

@Dr-KoKo

Description

@Dr-KoKo

기능

Space의 인가 로직을 security(filter)로 이전

설명

모든 Controller가 현재 인증된 유저가 권한이 있는지 여부를 체크하게 되면 인가확인을 하는 공통된 로직이 모든 컨트롤러에 추가되게 됩니다. 이런 횡단 관심사는 filter나 spring-aop를 이용해서 처리하면 좋을 것 같아요.
다만,

  1. 모든 요청에 대해 DB조회를 하게되면 connection-pool의 소진 및 비용 문제 발생
  2. space에서 탈퇴한 유저의 경우 바로 반영되어야 함
    을 염두하고 개발을 진행해야 할 것 같습니다.

기대 효과

controller에서 비즈니스 로직만 담당하게 되어서 능를도 높아지고 가독성도 좋아질 것으로 보입니다.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions