中间件/机架/ OmniAuth ::策略:: LinkedIn#call OAuth ::问题signature_invalid

时间:2019-03-19 08:35:32

标签: ruby-on-rails omniauth omniauth-linkedin

我正在使用omniauth-linkedin Gem版本1.3.1(Ruby:2.3.0 && Rails:4.2.6)允许用户通过Linkedin登录。 它对我来说很好用,但对某些用户来说却不起作用。

当我检查日志中的错误时。我发现以下问题OAuth::Problem: signature_invalid

…by-2.3.0@GEMNAME/gems/oauth-0.5.1/lib/oauth/consumer.rb: 178:in `request'
…by-2.3.0@GEMNAME/gems/oauth-0.5.1/lib/oauth/consumer.rb: 195:in `token_request'
…by-2.3.0@GEMNAME/gems/oauth-0.5.1/lib/oauth/
/usr/local/rvm/gems/ruby-2.3.0@GEMNAME/gems/oauth-0.5.1/lib/oauth/consumer.rb
consumer.rb: 136:in `get_request_token'
…/omniauth-oauth-1.1.0/lib/omniauth/strategies/oauth.rb:  28:in `request_phase'
…uth-linkedin-0.2.0/lib/omniauth/strategies/linkedin.rb:  55:in `request_phase'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 215:in `request_call'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 183:in `call!'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 164:in `call'
…63165cdedc87/lib/omnicontacts/middleware/base_oauth.rb:  43:in `call'
…63165cdedc87/lib/omnicontacts/middleware/base_oauth.rb:  43:in `call'
…63165cdedc87/lib/omnicontacts/middleware/base_oauth.rb:  43:in `call'
…/omnicontacts-63165cdedc87/lib/omnicontacts/builder.rb:  27:in `call'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 186:in `call!'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 164:in `call'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 186:in `call!'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 164:in `call'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 186:in `call!'
….0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/strategy.rb: 164:in `call'
…3.0@GEMNAME/gems/omniauth-1.3.1/lib/omniauth/builder.rb:  63:in `call'
…y-2.3.0@GEMNAME/gems/warden-1.2.6/lib/warden/manager.rb:  35:in `block in call'
…y-2.3.0@GEMNAME/gems/warden-1.2.6/lib/warden/manager.rb:  34:in `catch'
…y-2.3.0@GEMNAME/gems/warden-1.2.6/lib/warden/manager.rb:  34:in `call'
…ems/ruby-2.3.0@GEMNAME/gems/rack-1.6.4/lib/rack/etag.rb:  24:in `call'

有人可以帮我改变什么吗?以及为什么它与某些用户一起使用而不与其他用户一起使用?

0 个答案:

没有答案