Explicitly give keyring backend on Mac too.

CURA-7180
This commit is contained in:
Remco Burema 2021-04-08 14:08:35 +02:00
parent 37cd12663b
commit 1c806199a4
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -18,6 +18,9 @@ if Platform.isWindows() and hasattr(sys, "frozen"):
import win32timezone import win32timezone
from keyring.backends.Windows import WinVaultKeyring from keyring.backends.Windows import WinVaultKeyring
keyring.set_keyring(WinVaultKeyring()) keyring.set_keyring(WinVaultKeyring())
if Platform.isOSX() and hasattr(sys, "frozen"):
from keyring.backends.OS_X import Keyring
keyring.set_keyring(Keyring())
# Even if errors happen, we don't want this stored locally: # Even if errors happen, we don't want this stored locally:
DONT_EVER_STORE_LOCALLY: List[str] = ["refresh_token"] DONT_EVER_STORE_LOCALLY: List[str] = ["refresh_token"]