Class: OmniAuth::Strategies::Recharge

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

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



34
35
36
37
38
# File 'lib/omniauth/strategies/recharge.rb', line 34

def callback_url
  # make sure the query string doesnt get added to the redirect_uri
  # https://github.com/intridea/omniauth-oauth2/issues/93
  full_host + script_name + callback_path
end

#raw_infoObject



29
30
31
32
# File 'lib/omniauth/strategies/recharge.rb', line 29

def raw_info
  api_url = ENV['RECHARGE_API_URL'] || 'https://api.rechargeapps.com/'
  @raw_info ||= access_token.get(api_url).parsed
end