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

Conversation

@Hun3431
Copy link
Member

@Hun3431 Hun3431 commented Sep 13, 2023

개요

Chat Log를 반환해주는 코드 작성

세부 내용

ChatLog가 없는 경우 404 Not Found 반환
ChatLog가 있는 경우 200, ChatLog List 반환
Test를 위해 인증 제거 후 Test

@Hun3431 Hun3431 added the enhancement 새 기능 또는 요청 label Sep 13, 2023
@Hun3431 Hun3431 requested a review from a team September 13, 2023 16:59
@Hun3431 Hun3431 self-assigned this Sep 13, 2023
@Hun3431
Copy link
Member Author

Hun3431 commented Sep 15, 2023

안쓰는 DTO 제거 완료

Copy link
Member

@98StarJune 98StarJune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

세부내용 확인 요망

}

[HttpGet]
public async Task<ActionResult> ChatLog(long roomId)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

보안을 위한 작업이 추가로 필요할 것 같습니다.

만약에 RoomID가 탈취 되었을 경우 해당 채팅 방에서의 모든 채팅 기록을 받아볼 수 있을 가능성이 있어보입니다.

여러 방법이 있겠지만 JWT 인증을 통해 payload의 UserID(고유값)을 취하고 이를 Room 내 속해있는 유저인지 확인하는 작업이 추가되면 이를 개선할 수 있지 않을까 하는 제안을 해봅니다.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추석때 쉬라매!!!!!!!!!!!!!!!!!

@@ -0,0 +1,9 @@
// 추후에 개발하다가 안쓰는게 확실해지면 지울 예정입니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사용하지 않은 클래스는 제거 해주세요.......!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

했다고!!

@Hun3431
Copy link
Member Author

Hun3431 commented Oct 13, 2023

일단 id 확인하는거 추가는 했는데 테스트 어케해여?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement 새 기능 또는 요청

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants