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

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

问题描述

我正在使用不同的NPM版本的angular v6软件包通过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)

我已经尝试过使用角度软件包-

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天全站免登陆