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
sudoz
V2EX  ›  Python

请教 django-rest-framework 用户注册登录验证的最佳方案

  •  
  •   sudoz · 2015-12-09 12:43:51 +08:00 · 4593 次点击
    这是一个创建于 3069 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用 django-rest-framework 写 restful 的 server api, 用户注册和登录的逻辑怎么处理能有很好的可扩展性?
    此外登录验证是否有必要采用 django 自带的 auth, 感觉 auth 有点冗余, 自己写一个验证的模块, 对密码加密, 保存登录 token 的方案可行?
    3 条回复    2015-12-09 18:28:08 +08:00
    neoblackcap
        1
    neoblackcap  
       2015-12-09 12:44:45 +08:00
    Oauth2
    felixzhu
        2
    felixzhu  
       2015-12-09 13:54:15 +08:00   ❤️ 1
    sudoz
        3
    sudoz  
    OP
       2015-12-09 18:28:08 +08:00
    @felixzhu 这个实现有点高大全了, 并不需要 permission, 只是用户的注册,加密,客户端返回 token 免密登录, 然后方便扩展短信验证邮箱验证
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1938 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:06 · PVG 09:06 · LAX 18:06 · JFK 21:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.