Spring Security 구현 완료 후 회원 관련 #71
silverpoodle
started this conversation in
Reference
Replies: 1 comment
-
|
네 알겠습니다! 깔끔한 설명 감사합니다~😊 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
로그인, 회원가입 시 접근하는 /member 를 제외한 모든 url 은 권한이 있는 회원이 아니면 접근하지 못합니다.
요청을 보낼 시 RequestHeader 에 {"Authentication": 발급된 토큰} 을 넣고,
토큰을 통해 memberNo 를 추출하여 사용하면 됩니다.
일단 토큰의 유효시간은 30일로 해놨습니다. (너무 짧으면 불편하니까><)
회원가입 - http://localhost:8080/member/signup
로그인 - http://localhost:8080/member/login
테스트 시 위 과정을 거쳐 토큰을 발급 받은 후 해당 토큰을 헤더에 넣어서 보내주시면 됩니다.
Beta Was this translation helpful? Give feedback.
All reactions