Class: Conjur::Authz::API

Inherits:
Conjur::API show all
Defined in:
lib/conjur/authz-api.rb

Constant Summary

Constants inherited from Conjur::API

Conjur::API::VERSION

Instance Attribute Summary

Attributes inherited from Conjur::API

#api_key, #username

Class Method Summary collapse

Methods inherited from Conjur::API

authenticate, #create_authn_user, #create_group, #create_host, #create_resource, #create_role, #create_secret, #create_user, #create_variable, #credentials, enroll_host, #group, #groups, #host, #initialize, login, login_cas, new_from_key, new_from_token, parse_role_id, #resource, #role, #secret, #token, #user, #variable

Methods included from LogSource

#log

Methods included from Escape

#fully_escape, included, #path_escape, #query_escape

Constructor Details

This class inherits a constructor from Conjur::API

Class Method Details

.default_hostObject



9
10
11
12
13
14
15
16
# File 'lib/conjur/authz-api.rb', line 9

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
end

.hostObject



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

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