Coder Social home page Coder Social logo

Comments (4)

Anuragjain89 avatar Anuragjain89 commented on August 14, 2024

@Shalashtein
Please try if the solution provided in this thread works for you
arunagw/omniauth-twitter#105

from solidus_social.

Shalashtein avatar Shalashtein commented on August 14, 2024

@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

from solidus_social.

Anuragjain89 avatar Anuragjain89 commented on August 14, 2024

@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.

from solidus_social.

Shalashtein avatar Shalashtein commented on August 14, 2024

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

from solidus_social.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.