Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/19.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
使用python social auth自定义登录过程_Python_Django_Authentication_Python Social Auth_Django Pipeline - Fatal编程技术网

使用python social auth自定义登录过程

使用python social auth自定义登录过程,python,django,authentication,python-social-auth,django-pipeline,Python,Django,Authentication,Python Social Auth,Django Pipeline,我使用一个非常定制的登录过程,使用电子邮件/密码表单没有问题。我正在使用redis存储会话。 我知道我可以在我的设置.py文件和Django中配置SESSION\u ENGINE,即使使用python social auth登录,我也会这样做,但我需要编写自己的会话密钥和值,因为我使用的是jwt,我还需要在登录过程中执行一些其他自定义操作,因此,我一直在寻找如何在python social auth流中“拦截”登录过程,我已经检查了每个管道的代码,但我无法找出这是在哪里发生的。如何使用pytho

我使用一个非常定制的登录过程,使用电子邮件/密码表单没有问题。我正在使用redis存储会话。
我知道我可以在我的
设置.py
文件和Django中配置
SESSION\u ENGINE
,即使使用
python social auth
登录,我也会这样做,但我需要编写自己的会话密钥和值,因为我使用的是
jwt
,我还需要在登录过程中执行一些其他自定义操作,因此,我一直在寻找如何在python social auth流中“拦截”登录过程,我已经检查了每个管道的代码,但我无法找出这是在哪里发生的。如何使用
pythonsocialauth
实现自定义登录?

您可以尝试使用
pythonsocialauth
django rest framework
djangorestframework jwt
模块(最后一个模块实现jwt支持)的很棒的
django rest社交auth
)。如果不适合您,您可以发现
django rest social auth
djangorest框架jwt
的代码来实现您自己的流程