linkedin - 使用 r_liteprofile 在现有应用程序上获取未授权范围错误

标签 linkedin linkedin-api

我们遵循了以下指南:https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq#what-permissions-do-i-have-access-to

All developer applications created on the LinkedIn Developer Portal after January 14, 2019 have access to the LinkedIn v2 API by default. Alternatively, if your developer application has made a successful LinkedIn v1 API request from September 1, 2018 to December 17, 2018, your developer application has immediate access to the v2 API.

我们也符合此处关于该时间段之间成功的 API 请求的标准。

我们在假期前不久进行了转换(他们一发出公告),从上周开始,我们开始在新注册中看到这一点:

unauthorized_scope_error | Scope "r_liteprofile" is not authorized for your application 

我们现在应该恢复到 r_basicprofile 吗?

这是用于“使用 Linkedin 登录”。

这是 GET 请求:https://www.linkedin.com/oauth/v2/authorization?client_id=XXXX&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Flinkedin%2Fcallback&response_type=code&scope= r_liteprofile+r_emailaddress&state=XXXX

这是响应重定向:http://localhost:3000/auth/linkedin/callback?error=unauthorized_scope_error&error_description=Scope+%26quot%3Br_liteprofile%26quot%3B+is+not+authorized+for+your+ application&state=XXXX

谢谢!

最佳答案

我今天遇到了这个问题,我缺少的步骤是我需要将“使用 LinkedIn 登录”产品添加到我的应用程序中。

这里的术语很奇怪,但屏幕截图很有帮助。您需要访问开发者门户上的“产品”页面(网址如:https://www.linkedin.com/developers/apps/[your app id]/products)

select linkedin app product

在您执行此操作并且您的请求被批准后(对我来说花了不到 5 分钟),“身份验证”选项卡下列出的“OAuth 2.0 范围”将扩展为包括“r_emailaddress”和“r_liteprofile”。

关于linkedin - 使用 r_liteprofile 在现有应用程序上获取未授权范围错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54119288/

相关文章:

node.js - 使用电子邮件和密码获取 Linkedin API 的访问 token

java - LinkedIn-j 获取公司更新

linkedin - 如何验证LinkedIn访问 token ?

api - 无法使用 Linkedin API 获得技能?

android - LinkedIn登录后如何获取用户数据

php - LinkedIn OAuth 缺少必需的参数 "client_id"

android - 如何登录linkedin发送访问 token 到服务器端

javascript - 来自前端的 Linkedin oauth/v2/accessToken API 的 CORS 错误

php - LinkedIn 二级连接 API

javascript - 如何使用 linkedIn Javascript api 获取连接的兴趣?