Arch Linux, Gnome-Keyring and 1Password
I've been playing with Garuda Sway linux recently because I like their Sway/SwayFX configuration and layout. The "downside" is that I've had to learn the ins and outs of an Arch Linux based distribution.
1Password will not work "properly" out of the box. When you enter your OTP codes, you will see the message "1password was unable to save your two-factor token" at the bottom of the screen. The changes below will fix the glitch.
Needed changes
- Configure PAM as shown below.
- Logout.
- Login.
- Create a gnome-keyring and set it as default. This can easily be done with seahorse, as referenced in the source link above.
- Run seahorse
- Create a new Password keyring
- Set the new Password keyring as default
- Re-open 1Password and enter the requested authentication tokens. It will now be able to save the authentication tokens to the gnome-keyring
Configure PAM
File: /etc/pam.d/login
#%PAM-1.0
auth requisite pam_nologin.so
auth include system-local-login
auth optional pam_gnome_keyring.so
account include system-local-login
session include system-local-login
session optional pam_gnome_keyring.so auto_start
password include system-local-login
File: /etc/pam.d/greetd
#%PAM-1.0
auth required pam_securetty.so
auth requisite pam_nologin.so
auth include system-local-login
auth optional pam_gnome_keyring.so
account include system-local-login
session include system-local-login
session optional pam_gnome_keyring.so auto_start