Parent

Class/Module Index [+]

Quicksearch

OmniAuth::Strategies::Twitter

Public Instance Methods

old_request_phase() click to toggle source
Alias for: request_phase
raw_info() click to toggle source
# File lib/omniauth/strategies/twitter.rb, line 33
def raw_info
  @raw_info ||= MultiJson.load(access_token.get('/1.1/account/verify_credentials.json?include_entities=false&skip_status=true').body)
rescue ::Errno::ETIMEDOUT
  raise ::Timeout::Error
end
request_phase() click to toggle source
# File lib/omniauth/strategies/twitter.rb, line 41
def request_phase
  ]force_login lang screen_name].each do |v|
    if request.params[v]
      options[:authorize_params][v.to_sym] = request.params[v]
    end
  end

  ]x_auth_access_type].each do |v|
    if request.params[v]
      options[:request_params][v.to_sym] = request.params[v]
    end
  end

  if request.params['use_authorize'] == 'true'
    options[:client_options][:authorize_path] = '/oauth/authorize'
  else
    options[:client_options][:authorize_path] = '/oauth/authenticate'
  end

  old_request_phase
end
Also aliased as: old_request_phase

[Validate]

Generated with the Darkfish Rdoc Generator 2.