[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Configuration related changes
[ ] Documentation content changes
[ ] Other... Please describe:
Related Issues
What does this PR do?
[X] SecurityContextHolder.getContext().getAuthentication().getPrincipal() 타입 체크 추가
Other information
로컬 테스트: SecurityContextHolder.getContext().getAuthentication()==null
인증되지 않은 외부 요청: SecurityContextHolder.getContext().getAuthentication().getPrincipal() instance of String
인증된 외부 요청: SecurityContextHolder.getContext().getAuthentication().getPrincipal() instance of UserDetail
PR Type
(어떤 작업을 하셨나요?)
Related Issues
What does this PR do?
Other information
로컬 테스트: SecurityContextHolder.getContext().getAuthentication()==null 인증되지 않은 외부 요청: SecurityContextHolder.getContext().getAuthentication().getPrincipal() instance of String 인증된 외부 요청: SecurityContextHolder.getContext().getAuthentication().getPrincipal() instance of UserDetail