lib/conjur/authz-api.rb in conjur-api-4.3.0 vs lib/conjur/authz-api.rb in conjur-api-4.4.0
- old
+ new
@@ -21,19 +21,10 @@
module Conjur
module Authz
class API < Conjur::API
class << self
def host
- ENV['CONJUR_AUTHZ_URL'] || default_host
- end
-
- def default_host
- case Conjur.env
- when 'test', 'development'
- "http://localhost:#{Conjur.service_base_port + 100}"
- else
- "https://authz-#{Conjur.stack}-conjur.herokuapp.com"
- end
+ Conjur.configuration.authz_url
end
end
end
end
end
\ No newline at end of file