Class: Conjur::Authn::API
- Inherits:
-
Conjur::API
- Object
- Conjur::API
- Conjur::Authn::API
- Defined in:
- lib/conjur/authn-api.rb
Class Method Summary collapse
Class Method Details
.default_host ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/conjur/authn-api.rb', line 9 def default_host case Conjur.env when 'test', 'development' "http://localhost:#{Conjur.service_base_port}" else "https://authn-#{Conjur.account}-conjur.herokuapp.com" end end |
.host ⇒ Object
5 6 7 |
# File 'lib/conjur/authn-api.rb', line 5 def host ENV['CONJUR_AUTHN_URL'] || default_host end |