Class: OmniAuth::Strategies::Carvoyant
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Carvoyant
- Defined in:
- lib/omniauth/strategies/carvoyant.rb
Constant Summary collapse
- SITE_PREFIX =
'/v1/api'
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
32 33 34 |
# File 'lib/omniauth/strategies/carvoyant.rb', line 32 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
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 |