Class: Conjur::Authn::API

Inherits:
Conjur::API
  • Object
show all
Defined in:
lib/conjur/authn-api.rb

Class Method Summary collapse

Class Method Details

.default_hostObject



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.}-conjur.herokuapp.com"
  end
end

.hostObject



5
6
7
# File 'lib/conjur/authn-api.rb', line 5

def host
  ENV['CONJUR_AUTHN_URL'] || default_host
end