【问题标题】:Getting an unauthorized_scope_error on an existing application with r_liteprofile使用 r_liteprofile 在现有应用程序上获取未授权范围错误
【发布时间】:2020-07-09 05:47:31
【问题描述】:

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

在 LinkedIn 开发者门户上创建的所有开发者应用程序 2019 年 1 月 14 日之后,默认情况下可以访问 LinkedIn v2 API。 或者,如果您的开发者应用程序成功 2018 年 9 月 1 日至 2018 年 12 月 17 日的 LinkedIn v1 API 请求, 您的开发者应用程序可以立即访问 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 linkedin-api


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 2017-03-01
      • 2020-09-15
      • 1970-01-01
      • 1970-01-01
      • 2021-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多