Class: OmniAuth::Strategies::Uphold

Inherits:
OAuth2
  • Object
show all
Includes:
OmniAuth::Strategy
Defined in:
lib/omniauth/strategies/uphold.rb

Constant Summary collapse

UPHOLD_URL =
ENV['UPHOLD_URL'] || ENV['BITRESERVE_URL'] || 'https://uphold.com'
UPHOLD_API_URL =
ENV['UPHOLD_API_URL'] || ENV['BITRESERVE_API_URL'] || 'https://api.uphold.com'

Instance Method Summary collapse

Constructor Details

#initialize(app, *args, &block) ⇒ Uphold

Returns a new instance of Uphold.



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

def initialize(app, *args, &block)
  super
  options[:client_options][:authorize_url] = "#{UPHOLD_URL}/authorize/#{args[0]}"
end