TOTP
API for creating and deleting Time-based One-Time Password or TOTP.
TOTP are used to generate unique, temporary passwords as an added layer of protection when accessing sensitive keys or credentials from Nitride.
There are 2 API operations available for TOTP:
PUT - Create a new TOTP
DELETE - Delete an existing TOTP
Create a new TOTP
PUT
/v1/auth/ratls/totp
If the auth engine is enabled at a different path use /v1/auth/<your-path>/totp
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
created
integer (int64)
Creation timestamp, generated by the Nitride plugin
expiration
integer (int64)
Expiration timestamp of the TOTP
policy
string
Name of the policy to allow updates for
uuid
string
Identifier for the totp and the token itself, generated by the Nitride plugin.
Request samples
const response = await fetch('/v1/auth/ratls/totp', {
method: 'PUT',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"created": 0,
"expiration": 0,
"policy": "text",
"uuid": "text"
}),
});
const data = await response.json();
Response samples
{
"data": {
"created": 0,
"expiration": 0,
"policy": "text",
"uuid": "text"
}
}
Deleting an existing TOTP
DELETE
/v1/auth/ratls/totp/{totp-uuid}
If the auth engine is enabled at a different path use /v1/auth/<your-path>/totp/{totp-uuid}
Headers
Authorization
Bearer <token>
Path parameters
totp-uuid
string
Identifier for the TOTP and the token itself, generated by the Nitride plugin.
Request samples
const response = await fetch('/v1/auth/ratls/totp/{totp-uuid}', {
method: 'DELETE',
headers: {},
});
const data = await response.json();
Response samples
OK
Last updated