rails + satelizer - twitter login -


i using satelizer social logins in rails app. there's no ruby implementation, made 1 adapted node version.

so, after pressing login twitter button, controller, , following code produces message: "bad authentication data", code: 215

what doing wrong?

    requesttokenurl = 'https://api.twitter.com/oauth/request_token'     accesstokenurl = 'https://api.twitter.com/oauth/access_token'     profileurl = 'https://api.twitter.com/1.1/users/show.json?screen_name='      requesttokenoauth = {       consumer_key: env['twitter_key'],       consumer_secret: env['twitter_secret'],       callback: env['twitter_callback']     };     params = {'oauth' => requesttokenoauth }      require "net/https"     require "uri"      uri = uri.parse requesttokenurl     http = net::http.new(uri.host, uri.port)      # https stuff     http.use_ssl = true     http.verify_mode = openssl::ssl::verify_none      request = net::http::post.new(uri.request_uri)     request.set_form_data(params)     response = http.request(request)     binding.pry 


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -