Closed prufaraSS closed 1 week ago
You need a keyring software that implements the DBus secret service API in order to securely store the authentication token. One such application is gnome-keyring
.
I've never heard anything about keyrings ever, so trying to make it work sent me to a medium-length rabbit hole. so what I've done to make things work:
$ dbus-run-session -- sh
sh-5.2$ gnome-keyring-daemon --unlock
123 [Ctrl+D to exit]
sh-5.2$ exit
(Shoutout #413, Using keyring on headless linux systems)
$ sudo nano /etc/pam.d/login
#%PAM-1.0
auth ... ... auth optional pam_gnome_keyring.so account ... ... session ... ... session optional pam_gnome_keyring.so auto_start
(Basically saying to add _gnome keyring auth_ at the end of auth listings and _gnome keyring session_ below all session listings)
(Shoutout [Unable to log in - Arch Linux - Failed to store user ID to Keychain](https://forum.inkdrop.app/t/unable-to-log-in-arch-linux-failed-to-store-user-id-to-keychain/3045), [GNOME/Keyring: Using the keyring (PAM step) - ArchWiki](https://wiki.archlinux.org/title/GNOME/Keyring#Using_the_keyring))
5. Restarted the system and logged in discord account (Extra step: Closed Discordo and reopened it)
For those who doesn't want to see a popup window of authentification every time discordo executed:
here's what it tells: failed to get token from keyring err="The name is not activatable" using two factor authentification my specs: wayland, hyprland, no wlroots (aquamarine instead), kitty terminal, nvidia gpu (1050 ti), amd cpu, ssd (ext4), arch linux (linux-zen)