Closed vintagentleman closed 9 months ago
I recommend writing a shell script that does what you need and then use that as your otptokencmd
. Wouldn't that meet the need?
That did meet my need, though only hardcoding the absolute path to the script worked for me.
Thank you!
Hi, thanks for this awesome project!
The docs for
otptokencmd
suggest providing a command that returns a one-time password directly:However, I don't see how this approach can work with TOTPs, which are regenerated all the time. An option instead would be to use
secret-tool
to store the secret key and generate TOTPs dynamically viaoathtool
:This config doesn't seem to work though, which I assume is due to the fact that
secret-tool lookup matterhorn otp_secret_key
is interpreted as a literal string rather than executed as a subcommand.