Level up your business security with free, on-demand training and certification. Explore 1Password Academy today →
Forum Discussion
Anonymous
3 years agoIs it possible to inject a OTP into a config file?
I've set up a config file template as described here: https://developer.1password.com/docs/cli/secrets-config-files
Everything is working great, except for the OTP. The reference ( op://<vault>/<i...
andi_t_1P
1Password Team
3 years agoHi @nate886 , the answer to your question is that, currently, there is no way in which you could retrieve the totp value of a one time password using secret references. You could only achieve that using op item get <uuid> --otp. That being said, I just filed an internal feature request for making this possible with secret references well, with op read or op inject more specifically.
All the best,
Andi