thycotic.secretserver icon indicating copy to clipboard operation
thycotic.secretserver copied to clipboard

Ability to access "Generate One Time Password" functionality via new get-tssSecretTotpCode function?

Open TryTryAgain opened this issue 1 year ago • 2 comments

Summarize Functionality

As seen here: https://docs.delinea.com/online-help/secret-server/authentication/two-factor-authentication/totp/viewing-a-totp-for-a-web-secret/index.htm?Highlight=generate%20one%20time%20password

...we have secrets setup with TOTP's and are able to use them via the WebUI but I'm not sure if it's accessible via the API. If not, can you help push to get that added? If it is added, can you please point me in the right direction to accomplish it manually/REST direct? And/or can it be added to this fine module you have here?

Is this a wrapper command that will utilize current commands already in the module?

None

Is this a command based on a REST API endpoint?

Yes

Is the endpoint only found in a specific version of Secret Server

Yes

Technical Details

Is there any way to retrieve the MFA programmatically? Please consider adding it, let me know if you have any questions or need any more info...thanks!

TryTryAgain avatar Oct 02 '23 23:10 TryTryAgain

I've been able to find/confirm this is available at /api/v1/one-time-password-code/$secretId

TryTryAgain avatar Oct 11 '23 18:10 TryTryAgain

Function name would be get-tssSecretTotpCode

jagger avatar Jan 22 '24 06:01 jagger