drf中的jwt使用与手动签发token、校验用户
摘要:
jwt认证 1)session存储token,需要数据库参与,耗服务器资源、低效2)缓存存token,需要缓存参与,高效,不易集群3)客户端存token,服务器存签发与交易token的算法,高效,易集群 drf-jwt使用: 安装:djangorestframework-jwt视图类签发token 阅读全文
posted @ 2019-10-23 22:56 AbrahamChen 阅读(1206) 评论(0) 推荐(0) 编辑