solokeys / solo1

Solo 1 firmware in C
https://solokeys.com/
Other
2.29k stars 274 forks source link

requireResidentKey option #35

Open lcw99 opened 5 years ago

lcw99 commented 5 years ago

If adding following option to navigator.credentials.create function,

authenticatorSelection = {
                "authenticatorAttachment": "cross-platform",
                "requireResidentKey": true,
                "userVerification": "preferred"
            };

Solo stopped at CTAP_GET_INFO as following debug output, if I set requireResidentKey to false, it works fine.


[HID]
hello solo

init device
init ctaphid
init ctap
[STOR] Auth state is NOT initialized.  Initializing..
[DEBUG] resetting RK

[STOR] pin not set.
recv'ing hid msg
[DUMP2] >> ff ff ff ff 86 00 08 05 c1 a7 6a f0 ca d9 69 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[HID] Recv packet
[HID]   CID: ffffffff
[HID]   cmd: 86
[HID]   length: 8
[HID] adding a new cid
[DUMP2] << ff ff ff ff 86 00 11 05 c1 a7 6a f0 ca d9 69 02 00 00 00 02 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[DUMP2] >> 02 00 00 00 90 00 01 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[HID] Recv packet
[HID]   CID: 00000002
[HID]   cmd: 90
[HID]   length: 1
[HID] CTAPHID_CBOR
[CTAP] cbor input structure: 0 bytes
[DUMP] cbor req:
[CTAP] CTAP_GET_INFO
a5 01 82 66 55 32 46 5f 56 32 68 46 49 44 4f 5f 32 5f 30 03 50 88 76 63 1b d4 a0 42 7f 57 73 0e c7 1c 9e 02 79 05 19 04 b0 06 81 01 04 a4 64 70 6c 61 74 f4 62 72 6b f5 62 75 70 f5 69 63 6c 69 65 6e 74 50 69 6e f4
[CTAP] cbor output structure: 71 bytes.  Return 0x00
[DUMP2] << 02 00 00 00 90 00 48 00 a5 01 82 66 55 32 46 5f 56 32 68 46 49 44 4f 5f 32 5f 30 03 50 88 76 63 1b d4 a0 42 7f 57 73 0e c7 1c 9e 02 79 05 19 04 b0 06 81 01 04 a4 64 70 6c 61 74 f4 62 72 6b f5
[DUMP2] << 02 00 00 00 00 62 75 70 f5 69 63 6c 69 65 6e 74 50 69 6e f4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
stappersg commented 4 years ago

Solo stopped at CTAP_GET_INFO as following debug output, if I set requireResidentKey to false, it works fine.

(Sorry for the late reply.) Thanks for reporting. What is the current status? Is the issue still an issue?