DRF 로그인 인증 #91
Dong-Hyeon-Yu
started this conversation in
백엔드
Replies: 0 comments
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.
-
현재는 로그인은 세션으로 처리하고 있다.
django session framework 를 사용 중.
브라우저 별로 session_id 를 저장해서 사용.
key(id)-value 쌍으로 db 에 암호화되어 저장되어 있는데, value 는 기본적으로 dict 형태로 저장되어 있다.
원하는 값들을 추가, 제거 가능하다.=> 그때그때 사용자에 대한 정보를 저장하여 이용할 수 있다.
세션
토큰
REST api 만들면서 고려해볼점.
스프링을 도입한다면... =>
(세션)
(토큰)
장고를 이어간다면...
(세션)
(토큰)
머리 아프다..
Beta Was this translation helpful? Give feedback.
All reactions