Skip to content

Naver OAuth2 회원가입 및 로그인#157

Open
IM-GYURI wants to merge 15 commits intoESJung95:developfrom
IM-GYURI:feature/naver-oauth
Open

Naver OAuth2 회원가입 및 로그인#157
IM-GYURI wants to merge 15 commits intoESJung95:developfrom
IM-GYURI:feature/naver-oauth

Conversation

@IM-GYURI
Copy link
Copy Markdown
Collaborator

@IM-GYURI IM-GYURI commented Aug 13, 2024

변경사항

AS-IS

  • 자체 회원가입 및 로그인 기능만 존재함

TO-BE

  • Naver OAuth2를 통한 회원가입 및 로그인 기능 추가
    • Naver 계정으로 로그인 시 NaverOAuth2Service에서 처리한 후, NaverOAuth2AuthenticationSuccessHandler를 통해 Candidate로서 회원가입을 진행함
    • 로그인 성공 시 /common/job-postings로 리디렉션하고 JWT 토큰 값을 전달함
  • SecurityConfig의 PasswordEncoder를 PasswordEncoderConfig라는 별도의 클래스로 이동시킴 (순환 참조 문제 해결)
  • http://localhost:8080/naver 로 접속할 것

테스트

  • API 테스트

GLORY-JI and others added 15 commits July 29, 2024 14:38
채용공고 조회 캐싱 적용 & jobPostingStepId unique 제약 조건 설정
채용 공고 단계를 올릴 때 appliedJobPosting stepName update, test code 수정
merge develop branch to main branch
merge develop branch to main branch
- main 브랜치에 README.md 파일만 변경되어 푸시되는 경우에는 자동 배포 워크플로우가 실행 안됨
- implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
Copy link
Copy Markdown
Collaborator

@Goldbar97 Goldbar97 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 +40 to +45
Map<String, Object> immutableMap = Map.of(
"key", key,
"name", name != null ? name.toString() : null,
"email", email != null ? email.toString() : null,
"mobile", mobile != null ? mobile.toString() : null
);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Value 값을 String 으로 넣어주더라도 나중에 사용할 때 다시 Object 로 될텐데 null 확인을 하는 이유가 따로 있으신가요?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

사실 NullPointerException이 떠서 그 부분을 해결하려고 하다보니 null 체크가 여기저기 남아있습니다. 필요 없는 부분들은 후에 삭제하겠습니다!

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.

4 participants