Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close 회원 기능 #8
/login
으로 get 요청 보내면 구글 로그인 화면으로 리다이렉트일단
/login
이런 특정 url 빼고 다 인증된 유저만 접근할 수 있게 권한 걸어뒀는데, 나중에 회의에서 정해진 내용대로 머지할 때 권한 수정하겠습니다!인증이 필요한 url 접근할 때는
요청 헤더에
Authorization
: Bearer아까 발급 받은 access token
값을 추가해서 요청을 보냅니다.Controller에서 요청한 user 이메일 값을 알고 싶을 때는
인자로 Principal 객체를 받고,
principal.getName()
으로 접근하면 로그인 한 유저 이메일에 접근할 수 있습니다.