Class: OmniAuth::Strategies::Carvoyant

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

Constant Summary collapse

SITE_PREFIX =
'/v1/api'

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



32
33
34
# File 'lib/omniauth/strategies/carvoyant.rb', line 32

def callback_url
  full_host + script_name + callback_path
end

#raw_infoObject



36
37
38
# File 'lib/omniauth/strategies/carvoyant.rb', line 36

def raw_info
  @raw_info ||= access_token.get("#{SITE_PREFIX}/account").parsed['account'][0]
end