ruby-on-rails - LinkedIn OAuth 返回不明确的错误

标签 ruby-on-rails oauth oauth-2.0 linkedin omniauth

为了响应 oauth 请求,LinkedIn 使用以下参数将用户重定向回我的服务器:

GET /auth/linkedin/callback?error=server_error&error_description=f228ff35d9f7f99ee891ff1e9b056a7a2e4b8429b84de8d7&state=the+authorization+server+encountered+an+unexpected+condition

此外,根据 LinkedIn API , error_description 是“总结错误的 URL 编码的文本描述。”,这里不是这种情况。

这是原始请求:
https://www.linkedin.com/uas/oauth2/authorization?client_id=************&redirect_uri=https%3A%2F%2Fwww.mydomain.com%2Fauth%2Flinkedin%2Fcallback&response_type=code&scope=r_basicprofile+r_emailaddress&state=cc167e16fcc8039277cae38dc02d08bf526c955ceb403513

我怎样才能找出失败的真正原因?

我的堆栈:
  • rails 4.2.3
  • omn​​iauth 1.2.2
  • omn​​iauth-linkedin-oauth2 0.1.5
  • 最佳答案

    我们遇到了类似的问题,它是由 LI OAuth 表单上的用户名字段中的尾随空格引起的。

    我不确定为什么它没有发生在具有 LI Oauth 访问权限的其他站点上,但是来自 LI 的某个人已经能够为我们验证它。这个问题应该很快得到解决(或者我们已经被 promise )

    关于ruby-on-rails - LinkedIn OAuth 返回不明确的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32638986/

    相关文章:

    ruby-on-rails - bundle show gemname 和 gem list gemname 的区别

    ruby-on-rails - 在哪里可以找到 ActiveRecord_Relation 的 `present?` 方法的文档

    ruby-on-rails - Has_many 通过关联依赖 : destroy not destroying

    ruby-on-rails - 在Rails中创建域表(查找表)的首选方法是什么

    java - 为什么 Google Apis 控制台中没有 Google+ 历史记录 API?

    spring - client_id 和 client_secret 通过参数与 url 发送

    facebook/v2.1/oauth/authorize 不要重定向到/v2.1/dialog/oauth

    html - OAuth 在 iframe 中不起作用

    oauth-2.0 - Facebook 不返回用户的电子邮件

    python - Google App Engine 远程 API + OAuth