来自vk django-rest-framework-social-oauth2的电子邮件

时间:2017-12-20 10:07:16

标签: django django-rest-framework

我在我的项目中安装了django-rest-framework-social-oauth2 MS spcifications

在我的设置文件中添加此

SOCIAL_AUTH_VK_OAUTH2_SCOPE = [
    'email',
]

SOCIAL_AUTH_VK_EXTRA_DATA = [ 
    ('email', 'email'),
]

SOCIAL_AUTH_PIPELINE = (
    'social_core.pipeline.social_auth.associate_by_email',
    'social_core.pipeline.social_auth.social_details',
    'social_core.pipeline.social_auth.social_uid',
    'social_core.pipeline.social_auth.auth_allowed',
    'social_core.pipeline.social_auth.social_user',
    'social_core.pipeline.user.get_username',
    'social_core.pipeline.user.create_user',
    'social_core.pipeline.social_auth.associate_user',
    'social_core.pipeline.social_auth.load_extra_data',
    'social_core.pipeline.user.user_details',
)

当我在url / convert-token上发送请求时,创建了用户,但没有电子邮件字段

为什么不从VK收到电子邮件字段?

0 个答案:

没有答案