-
Notifications
You must be signed in to change notification settings - Fork 0
Chat log (#52) #58
base: develop
Are you sure you want to change the base?
Chat log (#52) #58
Conversation
|
안쓰는 DTO 제거 완료 |
98StarJune
left a comment
There was a problem hiding this 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) |
There was a problem hiding this comment.
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 내 속해있는 유저인지 확인하는 작업이 추가되면 이를 개선할 수 있지 않을까 하는 제안을 해봅니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추석때 쉬라매!!!!!!!!!!!!!!!!!
server/DTOs/chat/ChatLogRequest.cs
Outdated
| @@ -0,0 +1,9 @@ | |||
| // 추후에 개발하다가 안쓰는게 확실해지면 지울 예정입니다. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사용하지 않은 클래스는 제거 해주세요.......!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
했다고!!
|
일단 id 확인하는거 추가는 했는데 테스트 어케해여? |
개요
Chat Log를 반환해주는 코드 작성
세부 내용
ChatLog가 없는 경우 404 Not Found 반환
ChatLog가 있는 경우 200, ChatLog List 반환
Test를 위해 인증 제거 후 Test