Add YubiKey keyboard support#248
Conversation
8531f4b to
8536695
Compare
src/App/Pages/LoginTwoFactorPage.cs
Outdated
There was a problem hiding this comment.
It is also possible to use the USB entry on Android, if you don't have NFC support, which is why I was adding the option. I will update the interface though.
There was a problem hiding this comment.
src/App/Pages/LoginTwoFactorPage.cs
Outdated
There was a problem hiding this comment.
GitHub wants me to comment here as well. Same as above, USB entry does work on Android so I think it makes sense to leave it in. If you really want I can remove it on Android though.
src/App/Pages/LoginTwoFactorPage.cs
Outdated
There was a problem hiding this comment.
You dont need parens around your UWP check. Also dont you need some kind of "Has USB Port" check?
a2728ed to
b3e2298
Compare
|
I updated it, I tried to detect USB support, but it seems really hard to do. USB is a mess. It also seems unlikely that a Windows 10 computer doesn't have a USB port. This is my dev branch: https://github.com/alistair23/bytewarden-windows/tree/alistair/yubikey-wip |
|
Yes, but UWP is for mobile devices too. Do all windows mobile devices support USB? |
|
This app doesn't support Windows for phones, so that isn't a huge issue. I was thinking about this more though. So this app does support Xbox and maybe some future phone thing that Microsoft does. So there is merit in checking for USB. In saying that it is really hard to do. For example on my Surface Pro 2 the built-in camera is connected via USB, so the check will be a false positive there. I don't think it's unreasonable to assume that a device has a USB port, that isn't too unrealistic. If the user can't use it then they can change the second factor option. |
|
It also occurred to me that the Xbox One does has USB ports and I'm pretty sure it supports USB keyboards. So there really isn't much that doesn't support USB input. |
|
Wait, so UWP apps don't run on any type of mobile phones? |
|
There is no Windows Phone OS that runs with .NET standard 2.0. The latest and last Windows Phone OS is the fall creators update, which doesn't run .NET standard 2.0. This is why I had to create a fork, because Microsoft dropped the platform. |
|
Unless some unannounced OS comes up this can't support a Windows Phone |
|
But aren't there mobile phones that run windows 10? If not, I am struggling to understand why we should even support UWP through the mobile project going forward. We will have a desktop app in a month or two. |
|
There are no mobile phones that run a Windows OS that bitwarden can run on. UWP is good for Windows S and Xbox as well as regular Windows. |
|
My fork can run on Windows Phones though |
src/App/Resources/AppResources.resx
Outdated
There was a problem hiding this comment.
Should read:
To continue, hold your YubiKey NEO against the back of the device or insert your YubiKey into your device's USB port, then touch its button.
src/App/Pages/LoginTwoFactorPage.cs
Outdated
There was a problem hiding this comment.
AppResources.YubiKeyTextEnter This text can go away to be consistent with the browser extension. It is blank.
There was a problem hiding this comment.
Also, is this field auto-focused?
Signed-off-by: Alistair Francis <alistair@alistair23.me>
On Android and UWP it's possible to use the YubiKey to enter text instead of using the NFC. Allow people to do that. Signed-off-by: Alistair Francis <alistair@alistair23.me>
Windows platforms should always have YubiKey support. Signed-off-by: Alistair Francis <alistair@alistair23.me>
b3e2298 to
ede8a4d
Compare
|
All updated again |
* App: Pages: Fix the YubiKey image source Signed-off-by: Alistair Francis <alistair@alistair23.me> * App: Allow YubiKey keyboard output on apps On Android and UWP it's possible to use the YubiKey to enter text instead of using the NFC. Allow people to do that. Signed-off-by: Alistair Francis <alistair@alistair23.me> * App: Pages: Enable YubiKey support on Windows platforms Windows platforms should always have YubiKey support. Signed-off-by: Alistair Francis <alistair@alistair23.me>
|
Kinda bummed that phones won't be supported ☹ But it'd be a huge help if XBox does get the app - as inputting auto-generated passwords with a controller are a major PITA! Also, just to be clear regarding Windows support:
Am I right in these assumptions? |
|

No description provided.