Yubikey/OTP Validation by command line


#1

Hi!

I want to configure the privacyidea only by command line (without web interface), and I can create users and enroll the yubikey, however, how can I test the login with the yubikey? It is possible?


#2

“login” is a bit vague here.
privacyIDEA can validate a token. This can be done by sending an HTTP request to privacyIDEA.
You could e.g. use the nice command line tool httpie to call the /validate/check endpoint.
https://privacyidea.readthedocs.io/en/latest/modules/api/validate.html

If this is not, what you are looking for, please be a bit more precise about what you want to do.