【问题标题】:Error: Django-Social-Auth LinkedIn Client Error错误:Django-Social-Auth LinkedIn 客户端错误
【发布时间】:2018-12-15 03:43:21
【问题描述】:

身份验证后,我收到此错误消息 /oauth/complete/linkedin-oauth2/ 处的 HTTPError

410 客户端错误:网址消失:https://api.linkedin.com/v1/people/~:(email-address,first-name,headline,id,industry,last-name)?format=json

Django 设置配置

SOCIAL_AUTH_LINKEDIN_OAUTH2_SCOPE = [
    'r_emailaddress', 
    'r_liteprofile'
]
SOCIAL_AUTH_LINKEDIN_OAUTH2_FIELD_SELECTORS = [
    'email-address',
    'headline',
    'industry',]

======================================= Django 包版本:

social-auth-app-django==3.1.0

social-auth-core==2.0.0

Django==2.1

【问题讨论】:

    标签: django linkedin-api python-social-auth


    【解决方案1】:

    对于那些在 2019 年 5 月想知道的人,PyPi 版本仍然落后于 Github 上的 master 版本,并且使用 LinkedIn 已弃用的 v1 API,而不是 v2

    这对我有用:

    pip uninstall social-auth-core

    pip install git+https://github.com/python-social-auth/social-core

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-20
      • 1970-01-01
      • 2023-02-06
      • 2014-05-27
      相关资源
      最近更新 更多