feat/spring ai 라이브러리를 활용한 ai 모델 연동 #8
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ PR 작업 내용
handshakehandler vs websocketinterceptor : 핸들러와 인터셉터에서 jwt 검증하는 로직을 작성할 수 있는데 handler에서 이러한 작업을 하게 될 경우 stomp는 인증된 사용자를 모르기에 인증된 사용자를 stomp프로토콜로 넘겨줘야 하는 로직이 추가로 필요할 수 있습니다. 또한 핸들러는 연결시 한번만 동작하기에 검증 위치가 적절하지 않습니다. 인터셉터는 메시지 자체에 대해서 세부적인 컨트롤이 가능하기에 여기서 jwt 검증을 하게 된다면 바로 인증된 사용자를 stompheaderaccessor에 인증 객체를 담을 수 있습니다. 따라서 여기서 이러한 검증을 구현하게 된다면 권한에 따른 메시지 접근 또한 추가적으로 고려해 볼 수 있습니다.