Rookiestyle / KeePassOTP

Add OTP support (two factor authentication) to KeePass
GNU General Public License v3.0
405 stars 29 forks source link

KeePassOTP hotkey disabled in OTP plug-in option #147

Closed mathaefele closed 10 months ago

mathaefele commented 10 months ago

Overview

Hi,

I'd like to set a key to auto-type the OTP number on a website using 2FA. But the field seems to be disabled in the options as the label appears in grey and the text input is not modifiable.

Screenshot at 2024-01-08 10-51-22

For now I could set OTP for one website but I have to put keepass in front, look for the right entry, right click on it, select KeePassOTP, copy OTP and paste it on my browser. It works, that's great, but it is a bit painful... A key shortcut would be so nice !

Maybe it is only a general keepass option missing, but I cannot find out which one. Thanks for your help.

Steps to Reproduce

  1. Standard installation of the OTP plug-in by copying the KeePassOTP.plgx file to the right directory

Expected Behavior

Having a configurable Hot key for OTP

Actual Behavior

Hot key for OTP not configurable

Context

OS: ubuntu 22.04 with MATE KeePass Version: 2.47 Plugin Version: 1.7 I am also using KeePassRPC 1.14.0.0 plug-in by the way

Rookiestyle commented 10 months ago

This is disabled on purpose when running in Linux. Can you use the built-in hotkeys for Global Auto-Type and Global Auto-Type? See the Integration tab

When I run KeePass in my virtual Ubuntu, I can't define hotkeys for the KeePass built-in auto-types either and because of that, I implemented a similar check for my plugin's hotkey

Rookiestyle commented 10 months ago

You can try to enable the KPOTP column, doubleclicking the OTP shown therin will copy it to the clipboard. Not a hotkey but maybe a bit less inconvinient.

mathaefele commented 10 months ago

Having the OTP in the columns displayed for each entry already helps, thanks.

These shortcuts configurations seem to be complicated indeed. That would be great to have one that automatically fills the OTP field.

Maybe a short notice in the doc saying it is disabled on purpose on linux might help the next ones.

Thanks for this nice plug-in, I am really happy to be able to run the OTP protocol locally, within an application I am already using and without giving my secret to any website I should trust.

Rookiestyle commented 10 months ago

I'm afraid I can't help. I only found this: https://keepass.info/help/kb/autotype_wayland.html

My understanding of that: It's not possible to check window names It is only possible to auto-type the default sequence of the selected entry using a hotkey It's not possible to auto-type anything else using a hotkey

mathaefele commented 10 months ago

Ok, fair enough. Thanks for having a close look at it.