gpt4 book ai didi

oauth-2.0 - LinkedIn oAuth2身份验证中的authenticated_scope_error

转载 作者:行者123 更新时间:2023-12-05 00:46:49 24 4
gpt4 key购买 nike

我遵循Sign in with Linkedin中的Microsoft官方说明(也有Linkedin说明here),该说明也链接了here以获得授权代码流。按照指示,我已经设置了一个linkedin应用程序,并使用客户端ID和密码来启动oAuth 2流,从而请求r_liteprofiler_emailaddress范围。

我没有获取登录表单,而是使用以下参数重定向到了我的回调URL:

error: unauthorized_scope_error
error_description: Scope "r_liteprofile" is not authorized for your application
state: cfa970987c9a3c2178dddeda0d81dab3e00dce4c683098d6


这是默认范围的列表(根据文档,如果您自己未指定范围列表,则为默认范围),并且r_liteprofile不在其中。

enter image description here

文档是否过时了,还是我忽略了某些内容?

最佳答案

前几天这发生在我身上,但是以某种方式我能够解决这个问题。 new Microsoft API docs for LinkedIn是最新的。 LinkedIn Developers门户上的文档将很快过时:


重要更新:所有开发人员都需要在2019年3月1日之前迁移到我们的API版本2.0和OAuth 2.0。


一些尝试:


注册新的LinkedIn OAuth 2.0开发人员应用程序-新注册的应用程序可以访问新的V2 API
尝试删除r_liteprofile范围或恢复为r_basicprofile

关于oauth-2.0 - LinkedIn oAuth2身份验证中的authenticated_scope_error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53479131/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com