1. Post /users/login with username and password
2. Create a JWT with a secret
3. Returns the JWT to the Browser
4. Sends the JWT on the Authorization Header
5. Check JWT signature. Get user information from the JWT
6. Sends response to the client
서버에서 JWT토큰을 만들어서 보내면 사용자는 요청 할 때 마다 이 토큰을 보내야 한다.
'코딩 > 장고' 카테고리의 다른 글
django login knox (user extention one to one) (0) | 2021.01.06 |
---|---|
장고 파일 다운로드 인코딩 에러 (0) | 2020.10.21 |
장고 프로젝트에서 admin접속 시 서버 꺼질때 (0) | 2020.10.13 |
장고에서 공통코드를 처리하는 법 (0) | 2020.10.12 |
장고 onetomany 모델 생성하는법 (0) | 2020.10.06 |