推荐学习书目
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 · Dec 9, 2015 · 5077 views
    This topic created in 3806 days ago, the information mentioned may be changed or developed.
    用 django-rest-framework 写 restful 的 server api, 用户注册和登录的逻辑怎么处理能有很好的可扩展性?
    此外登录验证是否有必要采用 django 自带的 auth, 感觉 auth 有点冗余, 自己写一个验证的模块, 对密码加密, 保存登录 token 的方案可行?
    3 replies    2015-12-09 18:28:08 +08:00
    neoblackcap
        1
    neoblackcap  
       Dec 9, 2015
    Oauth2
    sudoz
        3
    sudoz  
    OP
       Dec 9, 2015
    @felixzhu 这个实现有点高大全了, 并不需要 permission, 只是用户的注册,加密,客户端返回 token 免密登录, 然后方便扩展短信验证邮箱验证
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   981 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 20:46 · PVG 04:46 · LAX 13:46 · JFK 16:46
    ♥ Do have faith in what you're doing.