使用 LinkedIn API CDN(https://platform.linkedin.com/in.js) 登录是否已损坏? [英] Is sign in with LinkedIn API CDN(https://platform.linkedin.com/in.js) broken?

查看:33
本文介绍了使用 LinkedIn API CDN(https://platform.linkedin.com/in.js) 登录是否已损坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 angular v6 的不同 NPM 包通过 LinkedIn API 登录.

I'm using different NPM package of angular v6 for login with LinkedIn API.

但我在每个包裹中都面临一个问题.甚至在上次运行的用 JavaScript 开发的网站现在也抛出同样的问题.调试后我在 https://platform.linkedin.com/in.js 中发现了一个问题.

But I'm facing one issue in every package. And even in last running website which was developed in JavaScript also throwing the same issue now. After debugging I found a problem in https://platform.linkedin.com/in.js.

错误在控制台显示如下-

Error is shown in the console as follows-

main.7cd16821a6fe05c4faf5.js:1 ERROR Error: Uncaught (in promise): TypeError: Cannot read property then of undefined
TypeError: Cannot read property then of undefined
at Object.authorize (in.js:18)

我尝试过以下 angular 包-

I've tried following angular packages-

 1. https://www.npmjs.com/package/angular-linkedin-sdk
 2. https://www.npmjs.com/package/angularx-social-login

Also tried to create raw javascript SDK project.

DEMO- https://abacritt.github.io/angularx-social-login/

所以这真的是 API 问题还是我有什么错误?如果是,那是什么?

So is it really API problem or is there any mistake from my end ? if yes then what is that?

如果有其他方式可以在 LinkedIn 上签名,请告诉我.

If there are other ways to do sign with LinkedIn let me know those.

推荐答案

LinkedIn 不再支持 JavaScript SDK.推荐的方法是使用 OAuth 2.0 和 LinkedIn 的 API.

LinkedIn no longer supports the JavaScript SDK. The recommended approach is to use OAuth 2.0 and LinkedIn's API.

我们的 JavaScript 和移动软件开发工具包 (SDK) 将停止工作.开发者需要直接从他们的应用迁移到使用 OAuth 2.0.

Our JavaScript and Mobile Software Development Kits (SDKs) will stop working. Developers will need to migrate to using OAuth 2.0 directly from their apps.

https://engineering.linkedin.com/blog/2018/12/developer-program-updates

这篇关于使用 LinkedIn API CDN(https://platform.linkedin.com/in.js) 登录是否已损坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆