Provides implementation for the Vault Auth Token backend APIs
Extends
- Vaulted
Methods
-
<inner> createToken( [mountName])
-
Creates a token to use for authenticating with the Vault.
Parameters:
Name Type Argument Default Description options.body.idstring <optional>
ID of the client token
options.body.policiesArray <optional>
list of policies for the token
options.body.metaObject <optional>
map of string to string valued metadata
options.body.no_parentboolean <optional>
creates a token with no parent
options.body.no_default_profileboolean <optional>
default profile will not be a part of this token's policy set
options.body.ttlstring <optional>
TTL period of the token
options.body.display_namestring <optional>
display name of the token
options.body.num_usesnumber <optional>
maximum uses for the given token
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
token path name the token auth backend is mounted on
Returns:
- Type
- Promise
-
<inner> lookupToken( [mountName])
-
Retrieve information about the specified existing token.
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the token
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
token path name the token auth backend is mounted on
Returns:
- Type
- Promise
-
<inner> lookupTokenSelf( [mountName])
-
Retrieve information about the current client token.
Parameters:
Name Type Argument Default Description options.tokenstring <optional>
the authentication token
mountNamestring <optional>
token path name the token auth backend is mounted on
Returns:
- Type
- Promise
-
<inner> renewToken( [mountName])
-
Renew an existing token to use for authenticating with the Vault.
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the token
options.body.incrementnumber <optional>
lease increment
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
token path name the token auth backend is mounted on
Returns:
- Type
- Promise
-
<inner> revokeToken( [mountName])
-
Revokes the specified existing token and all child tokens.
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the token
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
token path name the token auth backend is mounted on
Returns:
- Type
- Promise
-
<inner> revokeTokenOrphan( [mountName])
-
Revokes the specified existing token but not the child tokens.
Parameters:
Name Type Argument Default Description options.idstring unique identifier for the token
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
token path name the token auth backend is mounted on
Returns:
- Type
- Promise
-
<inner> revokeTokenPrefix( [mountName])
-
Revokes all tokens generated at a given prefix including children and secrets.
Parameters:
Name Type Argument Default Description options.idstring token prefix
options.tokenstring <optional>
the authentication token
mountNamestring <optional>
token path name the token auth backend is mounted on
Returns:
- Type
- Promise
-
<inner> revokeTokenSelf( [mountName])
-
Revokes the current client token and all child tokens.
Parameters:
Name Type Argument Default Description options.tokenstring <optional>
the authentication token
mountNamestring <optional>
token path name the token auth backend is mounted on
Returns:
- Type
- Promise