我使用django应用程序与python-social-auth负责与Linkedin OAuth2 API的集成。
Linkedin返回500服务器错误:
{
"error":"server_error",
"error_description":"the authorization server encountered an unexpected condition : Unable to retrieve access token"
}
重现的步骤:
http://localhost/complete/linkedin-oauth2/?
使用python-social-auth模块设置django app:
SOCIAL_AUTH_LINKEDIN_OAUTH2_KEY = <API key>
SOCIAL_AUTH_LINKEDIN_OAUTH2_SECRET = <Secret Key>
在端口80上运行Django服务器并转到:http://localhost/login/linkedin-oauth2/
http://localhost/login/linkedin-oauth2/
答案 0 :(得分:1)