Class: OmniAuth::Strategies::Frontrush

Inherits:
Object
  • Object
show all
Includes:
OmniAuth::Strategy
Defined in:
lib/omniauth/strategies/frontrush.rb

Instance Method Summary collapse

Instance Method Details

#callback_phaseObject



20
21
22
23
24
25
# File 'lib/omniauth/strategies/frontrush.rb', line 20

def callback_phase
  puts "call back yo!!"
  optionshash = { consumer_key: options[:consumer_key], consumer_secret: options[:consumer_secret], token: nil, token_secret: nil }
  response = get_access_token(request, options, optionshash)
  super if get_json_from_response(response)
end

#request_phaseObject



16
17
18
# File 'lib/omniauth/strategies/frontrush.rb', line 16

def request_phase
  redirect get_redirect_url(callback_url + '?device=web', options)
end