Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django 通过Twitter/Facebook/Google登录我的应用程序,并在Chrome扩展中识别用户_Django_Authentication_Oauth_Google Chrome Extension_Oauth 2.0 - Fatal编程技术网

Django 通过Twitter/Facebook/Google登录我的应用程序,并在Chrome扩展中识别用户

Django 通过Twitter/Facebook/Google登录我的应用程序,并在Chrome扩展中识别用户,django,authentication,oauth,google-chrome-extension,oauth-2.0,Django,Authentication,Oauth,Google Chrome Extension,Oauth 2.0,我正在运行一个Django应用程序,我想做一个Chrome扩展,允许用户发布内容。我的用户可以通过Twitter、Facebook和Google通过python social auth登录。我目前不要求帐户具有密码,因此在oAuth2方法之外无法登录。如何在Chrome扩展中验证用户以允许他们发布 工作流程如下所示: 安装镀铬加长件 通过我的网站进行身份验证,该网站没有基于密码的用户帐户 可能还通过单独的oAuth2使用者与我的API进行交互,并进行身份验证 我能够从我的站点的域中读取用户的会话

我正在运行一个Django应用程序,我想做一个Chrome扩展,允许用户发布内容。我的用户可以通过Twitter、Facebook和Google通过python social auth登录。我目前不要求帐户具有密码,因此在oAuth2方法之外无法登录。如何在Chrome扩展中验证用户以允许他们发布

工作流程如下所示:

安装镀铬加长件 通过我的网站进行身份验证,该网站没有基于密码的用户帐户 可能还通过单独的oAuth2使用者与我的API进行交互,并进行身份验证
我能够从我的站点的域中读取用户的会话cookie,并与我的API进行交互,而不存在任何问题。

您能详细说明您的解决方案吗?如果您在django allauth中有用户名和密码,您如何使用Chrome扩展对用户进行身份验证?