加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-17 04:38:03 所属栏目:百科 来源:网络整理
导读:为响应oauth请求,LinkedIn使用以下参数将用户重定向回我的服务器: GET /auth/linkedin/callback?error=server_errorerror_description=f228ff35d9f7f99ee891ff1e9b056a7a2e4b8429b84de8d7state=the+authorization+server+encountered+an+unexpected+conditi
为响应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
> omniauth 1.2.2
> omniauth-linkedin-oauth2 0.1.5

解决方法

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

我不确定为什么它在LI Oauth访问的其他网站上没有发生,但LI的某个人已经能够为我们验证它.这个问题应该很快得到解决(或者我们已经答应了)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读