Open WhyNotHugo opened 3 years ago
I do get asked for a password when there is no key present. But I'd like the authenticate button to be hidden when it is asking for confirmation through the security key.
Edit: I'm not sure if this is mate specific, or just generally polkit related.
Description
I'm using
mate-polkit
as my polkit agent. I have it set up to work with my Yubikey usingpam_u2f
.So when I'm prompted to authorise, I have to tap my yubikey and that all works fine. There's no password-typing involved.
Actual behaviour
The prompt that I get has an "Authenticate" button, which does nothing when clicked and is a bit confusing (even though I know it does nothing, sometimes I click it instead of tapping my yubikey :man_facepalming:
Expected behaviour
When not requesting a password, the "Authenticate" button should not be present; only "Cancel" makes sense here.
Steps to reproduce the behaviour
You'll need to configure
pam_u2f
. This is my/etc/pam.d/polkit-1
:If you don't have a key plugged in, the popup still shows but closes right away. So you can at least get a glimpse of the issue without a Yubikey.
I'm also not sure why it won't ask for a password when there's no key present though, that should suffice and it's what
sudo
does.Package version
mate-polkit 1.26.0
Linux Distribution
ArchLinux