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

POST /users 최초 실행시 unAuthorized 에러 #44

Open
2 tasks
raeperd opened this issue Sep 4, 2021 · 1 comment
Open
2 tasks

POST /users 최초 실행시 unAuthorized 에러 #44

raeperd opened this issue Sep 4, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@raeperd
Copy link
Member

raeperd commented Sep 4, 2021

최초로 회원가입을 시도할 때 response status 가 항상 unauthorized 인 오류

  • POST /users 는 인증과정 없이 접근할 수 있도록 수정
  • 인증되지 않은 UserAuthenticationToken 을 새로 등록하는 과정을 구현해야함
@raeperd raeperd added the bug Something isn't working label Sep 4, 2021
@raeperd raeperd self-assigned this Sep 4, 2021
raeperd added a commit that referenced this issue Sep 4, 2021
- findByIdOrSave new User
- Add google-signIn.html for test purpose
@raeperd
Copy link
Member Author

raeperd commented Sep 4, 2021

우선은 사용자 정보가 데이터베이스에 없는경우 데이터베이스에 새로운 사용자를 추가하도록 수정

추후에는 UserLoginService, UserSigninService 와 같이 로그인과 회원가입 로직을 분리해서 구현하는 것이 좋아보임.
그런데 이렇게 하려면 swagger 에 기록된 스펙의 수정이 불가피해보여서, 우선은 최소한의 변경사항으로 동작하도록 코드를 수정

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant