Class: OmniAuth::Strategies::Recharge
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Recharge
- Defined in:
- lib/omniauth/strategies/recharge.rb
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
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_info ⇒ Object
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 |