Class: VaultPlugin::API::Backend::Client
- Inherits:
-
Object
- Object
- VaultPlugin::API::Backend::Client
show all
- Extended by:
- Helpers
- Defined in:
- lib/smart_proxy_vault/api.rb
Class Method Summary
collapse
Methods included from Helpers
add_token_metadata?, settings_ttl, to_seconds, token_options, valid_ttl?, vault_client_configure, vault_settings
Class Method Details
.issue_role_token(role, options) ⇒ Object
22
23
24
|
# File 'lib/smart_proxy_vault/api.rb', line 22
def self.issue_role_token(role, options)
Vault.auth_token.create_with_role(role, options).auth.client_token
end
|
.issue_token(options) ⇒ Object
18
19
20
|
# File 'lib/smart_proxy_vault/api.rb', line 18
def self.issue_token(options)
Vault.auth_token.create(options).auth.client_token
end
|
.lookup_self ⇒ Object
26
27
28
|
# File 'lib/smart_proxy_vault/api.rb', line 26
def self.lookup_self
Vault.auth_token.lookup_self
end
|
.renew_self ⇒ Object
30
31
32
|
# File 'lib/smart_proxy_vault/api.rb', line 30
def self.renew_self
Vault.auth_token.renew_self(lookup_self.data[:creation_ttl])
end
|