【问题标题】:linkedin oauth2.0 authorization invalid client id errorlinkedin oauth2.0 授权无效的客户端 ID 错误
【发布时间】:2015-09-29 22:06:01
【问题描述】:

我正在使用带有 oauth 库的linkedin api。我的授权请求网址是 https://www.linkedin.com/uas/oauth2/authorization/?client_id=75gq3kju41jx44&redirect_uri=https%3A%2F%2Flocalhost%2FSocial%2Flinkedin%2Fsettings&scope=r_basicprofile%2Cw_share&response_type=code&state=1436579926-c05e44

但是它给了我错误的页面找不到它显示我无效的客户端 ID。请让我知道我哪里出错了。我正在使用本地主机。

【问题讨论】:

    标签: authorization linkedin clientid


    【解决方案1】:

    LinkedIn 的 OAuth 2.0 授权端点是:

    https://www.linkedin.com/uas/oauth2/authorization # <-- no '/' at the end
    

    其中没有斜杠。您应该从请求网址中删除尾部斜杠,它应该可以工作。

    最终请求网址:

    https://www.linkedin.com/uas/oauth2/authorization?client_id=75gq3kju41jx44&redirect_uri=https%3A%2F%2Flocalhost%2FSocial%2Flinkedin%2Fsettings&scope=r_basicprofile%2Cw_share&response_type=code&state=1436579926-c05e44
    

    【讨论】:

    • 完美..非常感谢
    【解决方案2】:

    为了摆脱找不到的页面,请在“?”之前删除“/”

    https://www.linkedin.com/uas/oauth2/authorization?client_id=75gq3kju41jx44&redirect_uri=https%3A%2F%2Flocalhost%2FSocial%2Flinkedin%2Fsettings&scope=r_basicprofile%2Cw_share&response_type=code&state=1436579926-c05e44
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-06-16
      • 2020-09-20
      • 2018-11-02
      • 2014-11-18
      • 2020-03-27
      • 2013-08-03
      • 2020-08-06
      相关资源
      最近更新 更多