Class: OmniAuth::Strategies::Bitreserve
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Bitreserve
- 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
-
#initialize(app, *args, &block) ⇒ Bitreserve
constructor
A new instance of Bitreserve.
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 [:client_options][:authorize_url] = "#{BITRESERVE_URL}/authorize/#{args[0]}" end |