Commit Graph

93 Commits

Author SHA1 Message Date
Dag Heyman
89673b58eb
drop support for OTP mode
this commit drops support for OTP
mode, where TOTP secrets could be
stored on the YubiKey configuration slots
2020-04-07 11:38:54 +02:00
Dag Heyman
a19c80ec2b
Improve CCID error handling
Co-Authored-By: Dennis Fokin <dennis.fokin@yubico.com>
2020-03-17 08:39:04 +01:00
Dag Heyman
132959af5d
add clear passwords btn in settings 2020-01-14 16:48:26 +01:00
Dag Heyman
fea3d76880
distinguish between custom reader NFC and USB 2020-01-14 15:21:37 +01:00
Emil Lundberg
3ab10e055e
Extract {usb,nfc}_selectable functions 2020-01-13 15:28:39 +01:00
Dag Heyman
eabbc8350e
handle oath disabled over NFC as well 2020-01-13 10:27:28 +01:00
Dag Heyman
9e44313443
py: handle device with OATH app disabled 2020-01-13 09:55:42 +01:00
Emil Lundberg
729339d2be
Move signal handler setup to C++ layer
See man pages for sigaction(2), sigemptyset(3):
http://man7.org/linux/man-pages/man2/sigaction.2.html
https://linux.die.net/man/3/sigemptyset

Code loosely based on
https://gist.github.com/azadkuh/a2ac6869661ebd3f8588 .
2019-11-26 14:03:31 +01:00
Emil Lundberg
99be0c8f91
Catch exception in signal.signal()
In Python 3.8, `signal.signal()` raises an exception when called on any
thread other than the main thread.

Catching the exception means the program can resume as normal - except
this means the signal handler won't be set up, so we should probably try
to move this to the C++/QML layer instead.
2019-11-26 13:21:03 +01:00
Dag Heyman
2dd9e0186e pyotherside: fix for handling signals correct 2019-09-30 14:50:30 +02:00
Dag Heyman
b5858a46d6 add cred: prompt for overwrite 2019-09-18 14:52:49 +02:00
Emil Lundberg
17fc216d7b Extract inner function in otp_calculate_all 2019-09-11 10:30:37 +02:00
Dag Heyman
7466aab82b yubikey: reuse _otp_get_code_or_touch 2019-09-11 10:30:37 +02:00
Dag Heyman
2077e9344c yubikey.py: treat no custom ccid device as success 2019-09-11 10:30:37 +02:00
Dag Heyman
94edf799b6 New UI based on Quick Controls 2
- New design based on Material Style
- Light mode and Dark mode
- Add support for custom CCID readers
- New tray functionality
- Support for favorite credentials

Co-authored-by: Rikard <rikard@yubico.com>
2019-09-11 10:30:37 +02:00
Dag Heyman
c648356d17
Merge pull request #314 from Yubico/add-slot-cred-errror
slot mode: improve error handling
2018-11-08 12:10:45 +01:00
Dag Heyman
d722fe2da9
fix flake8 2018-11-08 09:36:35 +01:00
Dag Heyman
5ec1721b5a
add slot cred: move some error handling 2018-11-08 09:17:08 +01:00
Josh Soref
037a3f9810 spelling: converts 2018-11-07 17:10:16 -05:00
Dag Heyman
4b9feda3c5
slot mode: improve error handling 2018-11-06 10:33:42 +01:00
Dag Heyman
98b8ea5cd4
forget password on changed device 2018-05-03 10:44:43 +02:00
Dag Heyman
bcf9f2a427
Use correct api for slot mode 2018-04-26 16:16:32 +02:00
Dag Heyman
67b9c1e70b
support yk preview 2018-04-26 15:02:27 +02:00
Emil Lundberg
6bc06d3253
Remove unused properties from unusable device description 2018-02-14 15:54:04 +01:00
Emil Lundberg
e08d1f6dda
Detect and report unusable device to user 2018-02-14 15:09:26 +01:00
Emil Lundberg
0093cae28c
Log refresh errors in yubikey.py 2018-02-14 15:09:24 +01:00
Emil Lundberg
5a592f35a3
Fix some snake_case/camelCase confusion 2018-02-07 18:24:51 +01:00
Emil Lundberg
f8cdd88d0f
Revert "Move function as_json to new module json_util"
This reverts commit 07fa6c5e61.
2018-02-07 16:16:27 +01:00
Emil Lundberg
79104f430e
Merge logging_setup.py into yubikey.py 2018-02-07 16:15:53 +01:00
Emil Lundberg
0ea5f8f486
Upgrade ykman 2018-02-01 17:09:47 +01:00
Emil Lundberg
c1129ae3c5
Add logging_setup.py 2018-02-01 17:09:07 +01:00
Emil Lundberg
07fa6c5e61
Move function as_json to new module json_util 2018-02-01 17:08:31 +01:00
Emil Lundberg
13935b64e8
Use module ykman.logging_setup instead of local module 2018-01-31 17:47:48 +01:00
Dag Heyman
b4eeaf51f2
Fix error in QR parsing 2018-01-30 09:11:55 +01:00
Dag Heyman
dd1218cf6b
Log non timeout YkpersError 2018-01-24 16:17:47 +01:00
Dag Heyman
7649b0fdfe
Refactor away duplicate code 2018-01-23 14:50:21 +01:00
Dag Heyman
e71bebd734
Remove dead code 2018-01-23 10:47:40 +01:00
Dag Heyman
ba461fb868
Log timeout better. 2018-01-23 10:47:17 +01:00
Emil Lundberg
7168aa9799
Log slot mode code calculation failure 2018-01-08 18:24:13 +01:00
Dag Heyman
517d07f5d2
Slot mode: handle errors when updating cred
If the calculation in slot mode fails,
don't do anything.
2018-01-03 10:46:47 +01:00
Emil Lundberg
c0661839ca
Fix QR scan broken in 57f18ca
QR code scan feature was broken by `Controller.parse_qr` returning a
`CredentialData` object instead of a plain dict.
2017-12-19 15:27:01 +01:00
Emil Lundberg
7a223dabb9
Enable setting up Python logging 2017-12-01 15:54:30 +01:00
Dain Nilsson
89f383d184
Show applet version in about. 2017-11-20 15:30:26 +01:00
Dain Nilsson
f37df42c43
More flake8 fixes. 2017-11-07 15:44:16 +01:00
Dain Nilsson
ce2a85708b
flake8 2017-11-07 15:00:20 +01:00
Dain Nilsson
57f18ca943
Update for latest ykman changes to OATH. 2017-11-07 14:13:29 +01:00
Dag Heyman
f8c1925130
Improve error handling to prevent hanging UI 2017-09-28 09:41:36 +02:00
Dag Heyman
006df9f44d
refactor: remove dead get_features code 2017-09-25 10:24:44 +02:00
Dag Heyman
6839e14c2d
Add support for custom periods
* Improve layout of add credential dialogs
* Scan QR no available from home screen
* Support 7 digit credentials
2017-09-12 16:21:38 +02:00
Dag Heyman
ab1f9619d2
fix hidden check 2017-09-05 14:41:47 +02:00