身份验证后,我在/oauth/ HTTPError /linkedin-oauth2/上收到了以下错误消息
410客户端错误:找不到url: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
发布于 2019-05-22 01:11:19
对于那些想知道2019年5月的人来说,PyPi版本仍然落后于Github上的master,并且正在使用LinkedIn的废弃的v1应用程序接口,而不是v2。
这对我很有效:
pip uninstall social-auth-core
pip install git+https://github.com/python-social-auth/social-core
https://stackoverflow.com/questions/53789335
复制相似问题