kopia lustrzana https://github.com/solokeys/solo1
use ctap2 instead of client
rodzic
6ae1cd3865
commit
b3604f49ba
|
@ -48,13 +48,11 @@ class SoloTests(Tester):
|
|||
sc.exchange = sc.exchange_fido2
|
||||
|
||||
req = SoloClient.format_request(SoloExtension.version, 0, b"A" * 16)
|
||||
assertions, client_data = sc.client.get_assertion(
|
||||
sc.host, "B" * 32, [{"id": req, "type": "public-key"}]
|
||||
a = sc.ctap2.get_assertion(
|
||||
sc.host, b"B" * 32, [{"id": req, "type": "public-key"}]
|
||||
)
|
||||
|
||||
with Test("Test custom command returned valid assertion"):
|
||||
assert len(assertions) == 1
|
||||
a = assertions[0]
|
||||
assert a.auth_data.rp_id_hash == sha256(sc.host.encode("utf8"))
|
||||
assert a.credential["id"] == req
|
||||
assert (a.auth_data.flags & 0x5) == 0x5
|
||||
|
|
Ładowanie…
Reference in New Issue