[김현재] Sprint9#276
Open
hyunjae3458 wants to merge 25 commits into
Open
Conversation
- Role enum타입 추가 - User, UserDto role 필드 추가 - User에 권한 수정 로직 추가 - UserService 권한 수정 서비스 로직 추가 - UserRepository admin 권한 사용자 있는지 확인 로직 추가 - Adminitializer, UserRoleUpdateRequest 클래스 파일 추가 - 스키마 파일 테이블에 role컬럼 추가 - DiscodeitUserDetails getAuthorities 수정
- DiscodeitAccessDeniedHandler 추가 - DiscodeitAuthenticationEntryPoint 추가 - 권한 계층 구조 설정 추가
- /api/auth/role 앤드포인트 핸들러 메서드 파라미터에 @RequestBody 추가 - 시큐리티 필터 체인에 권한 검증에서 제외할 앤드포인트 추가 - 공용채널 수정, 삭제에 관한 권한 검증 추가
- AuthService 클래스 생성하여 유저 권한 수정 시 세션이 만료되도록 함 - userStatus가 없어진 대신 세션으로 상태를 관리하기 위해서 DiscodeitUserDetails의 hashcode와 equals함수 오버라이딩 후 세션 만료되었는지 확인하는 메서드 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
요구사항
기본
심화
주요 변경사항
스크린샷
멘토에게