看起来 Linkedin 或 oauth.io 最近发生了一些变化。
以前可以正常连接,现在报403错误。
还在 oauth.io 网站上使用我的应用程序设置进行了检查,当尝试使用“尝试 Oauth”按钮进行连接时,它给出了相同的错误:
Connection failed with linkedin
We received an error while we were trying to authorize you. It can come from your API Keys or your provider app settings.
This error was returned by the server:
Error during the 'request_token' step (HTTP status code: 403)
Linkedin App 界面似乎发生了变化:
- 重新进入白名单
- 重新进入 oauth 2.0 链接
- 重新输入了我的信息等,看起来设置正确
- 这个设置直到最近才起作用
这是代码:
OAuth.initialize('xxxxx');
OAuth.popup('linkedin')
.done(function(result) {
console.log("Connecting to Linkedin");
result.me()
.done(function (response) {
//
})
.fail(function (err) {
alert("Problem connecting to Linkedin: " + err);
});
})
.fail(function (err) {
alert("Problem connecting to Linkedin: " + err);
});
有任何想法吗?