HA bans my IP if the keyring is locked
Opened this issue · 1 comments
I got a setup with automatic gnome-shell login (keyring is still locked until first usage), Ubuntu 22.04 (latest). After (automatic) login, the extension tries to authenticate with HA, but HA tells me that the extension can't be authenticated because of faulty credentials. As the keyring is still locked, the extension can't access the long-lived token. Unfortunately, the extension seems to retry to login a few times, until HA bans my IP.
Whenever I remove the ban and unlock the keyring first, the extension is successfully authenticated. So, it seems it accesses something the wrong way on the keyring, as it tries to authenticate with some value, even if the keyring is locked. Actually, I expected a dialogue, asking me to unlock the keyring first, before the extensions tries to authenticate with HA.
It took me some time to figure out that my IP was banned from HA.
Thanks for providing a detailed description of the issue. Unfortunately, I am not very familiar with how the gnome-keyring API works underneath, and I remember I myself had some problems when I first added it to this project (for security). I hope someone else will jump in and help you solve this :/