Skip to content

Conversation

@kkho9654
Copy link
Contributor

@kkho9654 kkho9654 commented May 8, 2024


name: User Authentication

Name about title labels assignees
User Authentication User Authentication "[PR]User Authentication" PR @kkho9654

작업 내용:

  1. 사용자 인증
  • id, pw 로그인을 통한 인증 => JsonAutentication~~
  • JWT 토큰을 통한 인증 => JWT~
  1. 사용자 인증 흐름
  • 인증되지 않은 사용자는 일단 로그인, 회원가입, 토큰 재발급만 가능
  • 아이디 패스워드 요청으로 로그인으로 사용자 인증 가능
  • 아이디 패스워드 인증 후 리프래시 토큰(http-only cookie), 엑세스 토큰 발급
  • JWT토큰은 헤더의 Authorization: Bearer {액세스 토큰} 을 검사해서 인증
  1. swagger에 token으로 인증 가능
  • 회원가입 -> 로그인 -> 액세스토큰 발급 -> "Bearer "+ access token 을 swagger-ui/index.html의 우측상단 authorize에 넣기

이번에 공들였던 부분:

  1. 일단 스프링 시큐리티에 대한 이해 부족으로 공부하면서 하느라 조금 오래걸렸다
  2. 인증 흐름에 대해 정확히 알지 못해서인지 계속 수정하느라 오래걸림
  3. 테스트 코드 작성하기 너무 빡세다.... 죄송합니다. (swagger로 통합테스트 계속 해보긴 했습니다)

질문:

제출 전 필수 확인 사항:

  • 빌드가 되는 코드인가요?
  • 버그가 발생하지 않는지 충분히 테스트 해봤나요?

@kkho9654 kkho9654 added the PR label May 8, 2024
@kkho9654 kkho9654 self-assigned this May 8, 2024
Copy link
Contributor

@wintiger98 wintiger98 left a comment

Choose a reason for hiding this comment

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

swagger 테스트 상 문제 없네요. 확인했습니다!

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

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants