Class: Conjur::Core::API
Constant Summary
Constants inherited from API
Instance Attribute Summary
Attributes inherited from API
Class Method Summary collapse
-
.conjur_account ⇒ Object
Returns the account as determined by the conjur server.
Methods inherited from API
#add_public_key, #audit, #audit_resource, #audit_role, authenticate, #create_deputy, #create_group, #create_host, #create_layer, #create_resource, #create_role, #create_user, #create_variable, #credentials, #current_role, #delete_public_key, #deputy, #find_groups, #group, #groups, #host, #initialize, #layer, #layers, login, login_cas, new_from_key, new_from_token, #public_key, #public_key_names, #public_keys, #resource, #resources, #role, #role_graph, #token, update_password, #user, #username, #variable, #variable_values
Methods included from LogSource
Methods included from Escape
#fully_escape, #path_escape, #query_escape
Constructor Details
This class inherits a constructor from Conjur::API
Class Method Details
.conjur_account ⇒ Object
Returns the account as determined by the conjur server.
You should generally provide the account with Conjur::Configuration#account, but this method can determine it by asking the server.
You do not need any credentials to call this method.
52 53 54 |
# File 'lib/conjur/core-api.rb', line 52 def conjur_account info['account'] or raise "No account field in #{info.inspect}" end |