Open Shalashtein opened 3 years ago
@Shalashtein Please try if the solution provided in this thread works for you https://github.com/arunagw/omniauth-twitter/issues/105
@Shalashtein Please try if the solution provided in this thread works for you https://github.com/arunagw/omniauth-twitter/issues/105
Unfortunately not, they're already called api_key and api_secret be default in this gem
@Shalashtein Please try if the solution provided in this thread works for you arunagw/omniauth-twitter#105
Unfortunately not, they're already called api_key and api_secret be default in this gem
As per this comment ( although a 2016 one but might work ) , you may try changing that name to consumer_key
and consumer_secret
.
I tried changing
config.providers = {
twitter: {
api_key: ENV['s2WF7cQbT7Ekxi8Jt4JT2sC1J'],
api_secret: ENV['upVvTRHa0Puuweu2dRNcLccgOFoZCsQdjpMiaVq5uNa3Qig7HM'],
}
}
end
to
config.providers = {
twitter: {
consumer_key: ENV['s2WF7cQbT7Ekxi8Jt4JT2sC1J'],
consumer_secret: ENV['upVvTRHa0Puuweu2dRNcLccgOFoZCsQdjpMiaVq5uNa3Qig7HM'],
}
}
end
same error, but these are only variable names. I ran the marshal_dump method and I got this
{:key=>nil, :secret=>nil, :options=>{:signature_method=>"HMAC-SHA1", :request_token_path=>"/oauth/request_token", :authorize_path=>"/oauth/authenticate", :access_token_path=>"/oauth/access_token", :proxy=>nil, :scheme=>:header, :http_method=>:post, :debug_output=>nil, :oauth_version=>"1.0", :site=>"https://api.twitter.com"}}
Perhaps there's a logical error in the gem itself because it doesn't seem to be including the key and secret in the http request
I followed the setup instructions, added by api key and the secret key and activated the Twitter login from the admin dashboard, when I try to login I'm faced with this error. Here's the log: