python social auth获取经过身份验证的用户详细信息
我有一个应用程序,它使用Python Social Auth连接到各种SM站点,用于登录和从其他站点检索数据。如果用户已登录,我如何检索他们的用户ID(与Django用户相关)?我试图在视图之外访问它,并且我认为能够访问策略中的一些可用方法,例如get_user(此处列出),但找不到文档或如何使用它python social auth获取经过身份验证的用户详细信息,python,django,Python,Django,我有一个应用程序,它使用Python Social Auth连接到各种SM站点,用于登录和从其他站点检索数据。如果用户已登录,我如何检索他们的用户ID(与Django用户相关)?我试图在视图之外访问它,并且我认为能够访问策略中的一些可用方法,例如get_user(此处列出),但找不到文档或如何使用它 (Pdb) pp dir(strategy) ['ALLOWED_CHARS', 'DEFAULT_TEMPLATE_STRATEGY', '__class__', '__delattr__'
(Pdb) pp dir(strategy)
['ALLOWED_CHARS',
'DEFAULT_TEMPLATE_STRATEGY',
'__class__',
'__delattr__',
'__dict__',
'__doc__',
'__format__',
'__getattribute__',
'__hash__',
'__init__',
'__module__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'absolute_uri',
'authenticate',
'build_absolute_uri',
'clean_partial_pipeline',
'create_user',
'from_session_value',
'get_backends',
'get_disconnect_pipeline',
'get_language',
'get_pipeline',
'get_setting',
'get_user',
'html',
'openid_session_dict',
'openid_store',
'partial_from_session',
'partial_to_session',
'random_string',
'redirect',
'render_html',
'request',
'request_data',
'request_get',
'request_host',
'request_is_secure',
'request_path',
'request_port',
'request_post',
'send_email_validation',
'session',
'session_get',
'session_pop',
'session_set',
'session_setdefault',
'setting',
'storage',
'to_session_value',
'tpl',
'validate_email']