Skip to content

8주차 미션 [민토리]#32

Open
SungMinju wants to merge 2 commits into
mainfrom
mintori/week8
Open

8주차 미션 [민토리]#32
SungMinju wants to merge 2 commits into
mainfrom
mintori/week8

Conversation

@SungMinju
Copy link
Copy Markdown
Collaborator

@SungMinju SungMinju commented May 20, 2026

🚩 관련 이슈

  • close #이슈번호

📌 구현 결과

  • 회원가입 API
스크린샷 2026-05-20 163856
  • 로그인 API
스크린샷 2026-05-20 163929
  • Public API외의 API -> Private API로 구현
스크린샷 2026-05-20 164001

❓ 리뷰 요청

🤔 질문

💬 기타 공유 사항

@SungMinju SungMinju self-assigned this May 20, 2026
Copy link
Copy Markdown
Member

@yangjiae12 yangjiae12 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!

Comment on lines +21 to +23
User user = userRepository.findByEmail(email)
.orElseThrow(() -> new UsernameNotFoundException(
"해당 이메일의 사용자를 찾을 수 없습니다: " + email));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

UsernameNotFoundException 메시지를 하드코딩하기보다는 UserErrorCode 등으로 관리하면 좋을 것 같습니다. 또한 입력 이메일이 예외 메시지에 그대로 포함되어 있어, 외부 노출 가능성을 고려하면 식별 정보는 제외하는 편이 더 안전해 보입니다!

Comment on lines +22 to +25
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
return List.of(new SimpleGrantedAuthority("ROLE_USER"));
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

현재 권한이 ROLE_USER로 고정되어 있는데, 이후 관리자나 사장님 등 역할이 나뉠 가능성이 있다면 User의 role 값을 기반으로 권한을 생성하는 방식도 고려해볼 수 있을 것 같습니다!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants