Yubico / python-yubico

Python code to talk to YubiKeys
https://developers.yubico.com/python-yubico/
BSD 2-Clause "Simplified" License
229 stars 33 forks source link

OATH Token Identifier Option #52

Closed superteece closed 3 years ago

superteece commented 3 years ago

In the graphical YubiKey Personalization Tool there is an option in OATH-HOTP advanced to omit the token identifier. I uncheck this box in my use case which is YubiKey as an OTP token in FreeIPA. However, the option to configure the HOTP mode via this project does not seem to allow proceeding without either a 6 or 8 character ID. Am I reading it wrong or is there a workaround?

https://github.com/Yubico/python-yubico/blob/170ea1ef1ce7f823c7da8899f2fc65cdc795f87a/yubico/yubikey_config.py#L309

superteece commented 3 years ago

Never mind, I misunderstood the code. It does not require a Token Identifier to be set and the default operation of the function I linked is to act as if the box in the GUI tool is unchecked.