Class: OmniAuth::Strategies::Smarterer

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/smarterer.rb

Instance Method Summary collapse

Instance Method Details

#callback_phaseObject



22
23
24
# File 'lib/omniauth/strategies/smarterer.rb', line 22

def callback_phase
  super
end

#raw_infoObject



46
47
48
49
50
51
52
53
54
55
56
# File 'lib/omniauth/strategies/smarterer.rb', line 46

def raw_info
  if @raw_info.nil?
    @raw_info = {}
    params = {access_token: access_token.token}
    response = RestClient.get('https://smarterer.com/api/users/me', { :params => params })
    user = MultiJson.decode(response.to_s)
    @raw_info.merge!(user)
  end

  @raw_info
end

#request_phaseObject



18
19
20
# File 'lib/omniauth/strategies/smarterer.rb', line 18

def request_phase
  super
end