Class: OmniAuth::Strategies::Bitreserve

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

Constant Summary collapse

BITRESERVE_URL =
ENV['BITRESERVE_URL'] || 'https://bitreserve.org'
BITRESERVE_API_URL =
ENV['BITRESERVE_API_URL'] || 'https://api.bitreserve.org'

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Bitreserve.



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

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