examples/server/ruby/app/controllers/auth_controller.rb
# Twitter don't support auth2 protocol yet, so it has it's own implementation for now
Twitter don't support auth2 protocol yet, so it has it's own implementation for now
Twitter don ' t support auth2 protocol yet so it has it ' s own implementation for now
def twitter
    if params[:oauth_token].blank?
      render_success({ oauth_token: twitter_oauth.request_token })
    else
      render_success({ token: twitter_oauth.access_token })
    end
  end
def twitter if params [ :oauth_token ] . blank? render_success ( { oauth_token : twitter_oauth . request_token } ) else render_success ( { token : twitter_oauth . access_token } ) end end
Twitter don't support auth2 protocol yet, so it has it's own implementation for now
Twitter don ' t support auth2 protocol yet so it has it ' s own implementation for now