首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
请教 django-rest-framework 用户注册登录验证的最佳方案
sudoz
·
2015-12-09 12:43:51 +08:00
· 4669 次点击
这是一个创建于 3215 天前的主题,其中的信息可能已经有所发展或是发生改变。
用 django-rest-framework 写 restful 的 server api, 用户注册和登录的逻辑怎么处理能有很好的可扩展性?
此外登录验证是否有必要采用 django 自带的 auth, 感觉 auth 有点冗余, 自己写一个验证的模块, 对密码加密, 保存登录 token 的方案可行?
auth
登录
验证
django
3 条回复
•
2015-12-09 18:28:08 +08:00
1
neoblackcap
2015-12-09 12:44:45 +08:00
Oauth2
2
felixzhu
2015-12-09 13:54:15 +08:00
1
http://www.django-rest-framework.org/api-guide/authentication/
3
sudoz
OP
2015-12-09 18:28:08 +08:00
@
felixzhu
这个实现有点高大全了, 并不需要 permission, 只是用户的注册,加密,客户端返回 token 免密登录, 然后方便扩展短信验证邮箱验证
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2549 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 14:50
·
PVG 22:50
·
LAX 07:50
·
JFK 10:50
Developed with
CodeLauncher
♥ Do have faith in what you're doing.