Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth 로그인 기능 구현 #73

Merged
merged 22 commits into from
Apr 30, 2021
Merged

OAuth 로그인 기능 구현 #73

merged 22 commits into from
Apr 30, 2021

Conversation

eNoLJ
Copy link
Collaborator

@eNoLJ eNoLJ commented Apr 30, 2021

깃헙 로그인 기능과 토큰을 파괴하는 로그아웃 기능 구현

eNoLJ added 22 commits April 28, 2021 18:18
로그인 기능을 위한 user 테이블 생성 쿼리문 생성
로그인 기능을 위해 User 엔티티 클래스와 UserRepository 인터페이스 생성
로그인 기능을 위해 UserController 클래스 생성, login 메소드 생성 중
oauth 인증을 통해 토큰 값을 가져올 때 사용하기 위해 TokenDTO 생성
UserController 클래스에 있던 비지니스 로직은 UserService 클래스를 만들어 이동, code를 통해 토큰을 얻어오는 tokenRequestApi 메소드, 토큰으로 유저 정보를 얻어오는 userInfoRequestApi 메소드, 토큰으로 유저 이멘일을 얻어오는 emailRequestApi 메소드 생성
TokenDTO 클래스에 getAccess_token 메소드, toString 메소드 생성,
유저 이메일을 전달하기 위해 EmailDTO 클래스 생성,
유저 정보를 전달하기 위해 UserInfoDTO 클래스 생성
로그인 시 user 정보를 전달하기 위해 UserResponseDTO 클래스 생성, UserController 클래스의 login 메소드의 반환 타입 변경
emailRequestApi 메소드의 restTemplate 매개변수 변경, login 메소드의 반환타입 변경
@eNoLJ eNoLJ merged commit 2266a10 into dev-be Apr 30, 2021
@eNoLJ eNoLJ deleted the be/feature/oauth branch April 30, 2021 01:24
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.

1 participant