Django-rest-auth Facebook 注册

Posted

技术标签:

【中文标题】Django-rest-auth Facebook 注册【英文标题】:Django-rest-auth Facebook registration 【发布时间】:2015-07-10 10:52:40 【问题描述】:

我正在尝试使用 django-rest-auth(Allauth 的休息包装器)实现 facebook 登录。 我遵循了他们的教程(显示如何登录,http://django-rest-auth.readthedocs.org/en/latest/installation.html),但我对注册部分有点困惑。

登录视图只需要一个令牌,但没有社交注册视图。这是否意味着 django-rest-auth 不处理新用户的注册?还是在单独的视图中处理?

非常感谢

【问题讨论】:

【参考方案1】:

Django rest auth 有RegisterView,它将处理用户注册部分并返回Auth TokenLoginView 将获取用户凭据并验证用户和身份验证。

【讨论】:

以上是关于Django-rest-auth Facebook 注册的主要内容,如果未能解决你的问题,请参考以下文章

django-rest-auth:使用 google 进行社交登录

django-rest-auth vs djoser,哪一个用于社交身份验证?

有啥方法可以更改登录的 Django-rest-auth 视图?

Django-rest-auth 和 AWS - 错误 401

当他从所有浏览器(Django-rest-auth,JWT)更改密码时如何注销用户?

django-rest-auth 自定义注册无法保存额外字段