I have enabled U2F device authentication for PAM on my Ubuntu 20.04. I have used this approach https://support.yubico.com/hc/en-us/articles/360016649099-Ubuntu-Linux-Login-Guide-U2F and put configuration into "/etc/pam.d/common-auth". Everything works as expected so I can log in via password AND U2F device touch.
Now I would like to avoid typing password once I am already logged into my account. (I always lock my computer when I leave it and take U2F token with me.)
For sudo I have added into "/etc/pam.d/sudo" line (above line @include common-auth):
auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue
After that change, I can confirm sudo just by pressing U2F button. Great.
Is there a way how to achieve the same with system dialogs asking for password? I mean this dialog that appears when I try to install package via Ubuntu Software:
System should keep asking for password + U2F touch during log in.