From 3aa5d00189d7a3ca355bbd3d9a3838e6ac05cd9f Mon Sep 17 00:00:00 2001 From: Tobias Neitzel Date: Mon, 8 Jan 2024 15:29:53 +0100 Subject: [PATCH 1/2] Fix display error for missing issuer OATH keys with missing issuer caused problems when displaying rofi. --- qubes-yubioath.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qubes-yubioath.py b/qubes-yubioath.py index b83c5d0..c6fcf4d 100755 --- a/qubes-yubioath.py +++ b/qubes-yubioath.py @@ -43,11 +43,13 @@ def select_credential(creds: list[Credential], qube: str) -> Credential: for cred in creds: - line = cred.issuer.ljust(20) + issuer = cred.issuer or 'Unknown' + + line = issuer.ljust(20) line += cred.name try: - icon_path = Path(Config.get(cred.issuer)) + icon_path = Path(Config.get(issuer)) if icon_path.is_file(): line += f'\x00icon\x1f{icon_path}' From 857db877f588c98a8cf53d2a6691f1052be9ccd6 Mon Sep 17 00:00:00 2001 From: Tobias Neitzel Date: Fri, 12 Jan 2024 09:35:03 +0100 Subject: [PATCH 2/2] Bump version number --- CHANGELOG.md | 7 +++++++ qubes-yubioath-dom0.sh | 1 + qubes-yubioath.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46f35ae..0e14798 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## v1.0.2 - Jan 12, 2024 + +### Changed + +* Fixed handling of tokens without issuer + + ## v1.0.1 - Oct 13, 2023 ### Changed diff --git a/qubes-yubioath-dom0.sh b/qubes-yubioath-dom0.sh index 60d23fe..10ff429 100644 --- a/qubes-yubioath-dom0.sh +++ b/qubes-yubioath-dom0.sh @@ -2,6 +2,7 @@ YUBI_QUBE='vault' +VERSION='qubes-yubioath v1.0.2' function get_id() { diff --git a/qubes-yubioath.py b/qubes-yubioath.py index c6fcf4d..916c229 100755 --- a/qubes-yubioath.py +++ b/qubes-yubioath.py @@ -393,7 +393,7 @@ def main(): ''' Main method :) ''' - parser = argparse.ArgumentParser(description='''qubes-yubioath v1.0.0 - A rofi based yubikey OTP frontend for Qubes''') + parser = argparse.ArgumentParser(description='''qubes-yubioath v1.0.2 - A rofi based yubikey OTP frontend for Qubes''') parser.add_argument('qube', help='qube to copy the credential to') parser.add_argument('--config', help='path to the configuration file') args = parser.parse_args()