Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General Question, not problem - Is there a way to display remaining time for oath code #529

Open
gbcox opened this issue Nov 17, 2022 · 4 comments

Comments

@gbcox
Copy link

gbcox commented Nov 17, 2022

  • YubiKey Manager (ykman) version: 5.0.0
  • How was it installed?: Fedora RPM
  • Operating system and version: Linux Fedora 37
  • YubiKey model and version: Yubikey 5 Nano (5.4.3)
  • Bug description summary:

Is there a way to display the remaining time (in seconds) on the oath code, in much the same way
as displayed by yubioath-authenticator?

I looked through the documentation and the --help menus but couldn't find it.

I was thinking that since yubioath-desktop relies on yubikey-manager to generate the codes, it was
getting the information from yubikey-manager - but maybe not.

@dainnilsson
Copy link
Member

The information is available to the application itself, but there is no way to output it to the user. The GUI does get this information from yubikey-manager, but it does not invoke it as a CLI application, it uses it as a library (where the information is more readily available). If there's a compelling use-case we could probably add the times to the CLI output as well, but of course it would be static and from the time of generation.

@gbcox
Copy link
Author

gbcox commented Nov 17, 2022

Thanks much for the quick answer. If it isn't too much trouble for you to add to the CLI it would be helpful. It's going to be some time before we can get the new oath-authenticator in the Fedora repository. We don't currently have flutter and then that needs to be looked at on how flutter apps conform to the bundling policy. I've written a bash front end script for yubikey-manager in the interim which automatically puts the selected oath code into the clipboard for use. The issue of course is that if it's close to expiring there is no way of knowing until it is used. It would be good to be able to have that info, so if it's close to expiring the script could then wait a few seconds and request a new code.

@dainnilsson
Copy link
Member

Understood, thanks for the context!

Regarding an interim solution before the Flutter app can be packaged for Fedora, another option would be to download our pre-compiled binary of the app from here: https://github.com/Yubico/yubioath-flutter/releases/download/6.0.0/yubico-authenticator-6.0.0-linux.tar.gz (just in case you missed it!)

@gbcox
Copy link
Author

gbcox commented Nov 17, 2022

Thanks! Yes, I'm testing that out also, just trying to give folks multiple options while I get this figured out. I put the instructions on how to install the yubioath-flutter into the bugzilla ticket, but people will have to do that manually because we can't place outside pre-compiled binaries into the fedora repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants