cap*_*m-r 5 api oauth linkedin
直到今天早上,在过去的两年里,我对我实施的Linkedin Oauth系统没有遇到任何问题.我可以验证所有数据是否仍然存在,但突然出现了一个非常奇怪的问题pictureUrl,即返回数据的参数.它不再导致图像,而是导致页面看起来像这样:
我无法弄清楚出了什么问题,任何建议都会非常感激.所有其他数据都很好.
问题似乎是,当 OAuth 客户端请求的字段多于应用程序允许请求的字段时,LinkedIn OAuth API 返回 500 错误。可以通过指定具体字段和范围来解决。
根据 GitHub ( https://github.com/auth0/passport-linkedin-oauth2/issues/24 )上最近的讨论,指定具体的profileFields和scope:
{
profileFields: [
"formatted-name",
"headline",
"id",
"public-profile-url",
"email-address",
"location"
],
scope: ["r_basicprofile", "r_emailaddress"]
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
996 次 |
| 最近记录: |