Skip to content

Initial: 회원 관련 초기 설정#12

Merged
LeeGukgeon merged 2 commits intodevelopfrom
11-4-회원-관리
Dec 12, 2024

Hidden character warning

The head ref may contain hidden characters: "11-4-\ud68c\uc6d0-\uad00\ub9ac"
Merged

Initial: 회원 관련 초기 설정#12
LeeGukgeon merged 2 commits intodevelopfrom
11-4-회원-관리

Conversation

@kingkang85
Copy link
Copy Markdown
Contributor

#️⃣연관된 이슈

#11

📝작업 내용

의존성 설정

  • Spring Security 의존성 추가
  • JWT 관련 의존성 추가 (jjwt-api, jjwt-impl, jjwt-jackson)

보안 설정

  • SecurityConfig 클래스 구성
  • 비밀번호 암호화를 위한 BCrypt 인코더 설정
  • CSRF 보호 기능 / 기본 로그인 폼 / HTTP Basic 인증 비활성화
  • JWT 토큰 사용을 위해 STATELESS로 설정
  • 추후 기능 구현과 함께 추가될 예정!!

Entity 정의

  • User 엔티티 정의

🧐의문점

회원 탈퇴 시에 탈퇴 날짜가 꼭 필요한가요?? 탈퇴 시에 DB에서 유저 정보가 삭제된다면, 굳이 탈퇴 날짜가 필요 없을 것 같아서 User 엔티티 쪽에 일단 주석으로 처리해 두었는데, 의견 주시면 감사드리겠습니다..!

- Spring Security 의존성 추가
- JWT 관련 의존성 추가 (jjwt-api, jjwt-impl, jjwt-jackson)
- SecurityConfig 클래스 구성
- User 엔티티 정의
- Controller, Service, Repository 계층 구조 설정

Resolves: #11
Copy link
Copy Markdown
Contributor

@KIM9909 KIM9909 left a comment

Choose a reason for hiding this comment

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

회원 관리 기능들이 잘 구현된 것 같습니다 ! 처음보는 security나 JWT, 보안 설정과 같은 부분이 되게 흥미롭네요 !
탈퇴 날짜는 제 생각에도 필요 없을 것 같긴 합니다.

Copy link
Copy Markdown
Contributor

@MinFe4990 MinFe4990 left a comment

Choose a reason for hiding this comment

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

check!
leavedate는 보통 회원탈퇴하면 한달간 데이터를 저장했다가, 한달 뒤 시간이 지나면 삭제하는 식으로 하는걸 하려했던건가?라는 생각이 드는데, 작성자의 의도는 모르겠네요.

@yunjaeeun
Copy link
Copy Markdown
Contributor

security관련 설정이 적절하게 된것같네요

Copy link
Copy Markdown
Contributor

@uni-zun uni-zun left a comment

Choose a reason for hiding this comment

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

@EnableWebSecurity 는 어떤 역할일까요 ?

@kingkang85
Copy link
Copy Markdown
Contributor Author

@EnableWebSecurity 는 어떤 역할일까요 ?

스프링 시큐리티의 웹 보안 설정을 위해 필요한 어노테이션입니다! 제가 SecurityConfig 클래스에 정의한 URL 접근 권한, 인증 방식, CSRF 설정 등이 저희 애플리케이션에 실제로 적용되기 위해 필요한 친구랍니다~!
@uni-zun

Copy link
Copy Markdown
Contributor

@LeeGukgeon LeeGukgeon left a comment

Choose a reason for hiding this comment

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

확인했습니다

@MinFe4990
Copy link
Copy Markdown
Contributor

제가 임시로 만든 UserRepository랑 출돌나서 수정해놨습니다.

@LeeGukgeon LeeGukgeon merged commit adbab13 into develop Dec 12, 2024
KIM9909 added a commit that referenced this pull request Dec 13, 2024
코드 순서 수정, 403 forbidden 에러 해결

Resolves: #12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants