From c9ca19afddcb231857589ce8501c08488038b24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Tue, 1 Sep 2020 17:15:44 +0200 Subject: [PATCH] config: use keyring.get_password() as a workaround for a kwallet bug The current implementation of the keyring KWallet backend contains a regression: get_credential() returns the password as a string. https://github.com/jaraco/keyring/commit/0b7b41f93f66ab11038ff50993cb43e9bf1f64af --- openconnect_sso/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openconnect_sso/config.py b/openconnect_sso/config.py index 1b9ed3e..040ce42 100644 --- a/openconnect_sso/config.py +++ b/openconnect_sso/config.py @@ -99,7 +99,7 @@ class Credentials(ConfigNode): @property def password(self): - return keyring.get_credential(APP_NAME, self.username).password + return keyring.get_password(APP_NAME, self.username) @password.setter def password(self, value):