Skip to content

[feature] Get resource TOTP code (somewhat implemented) #54

@pbogut

Description

@pbogut

The feature:
I would like to be able to generate TOTP code for resource from the cli.

Work done so far:
In order to make it work the go-passbolt would have to be updated. I did that in this commit: pbogut/go-passbolt@e8b14eb
Then this repo has to be updated to use generated code. I've done it here: pbogut@02607cc

My change works, and code is displayed when getting resource. Note that I did it just for myself as a proof of concept.

Things up for discussion:

  • Is this something that would be merged if pull request was made here and in go-passbolt repo?
  • Should go-passbolt return code, or should it return secret so go-passbolt-cli can generate code?
  • Is it ok to return it when it's available, or should it be only returned via flag?
  • Does any other repo depend on go-passbolt and would have to be updated as well?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions