use ctap2 instead of client

pull/185/head
Conor Patrick 2019-04-24 19:00:32 -04:00
rodzic 6ae1cd3865
commit b3604f49ba
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -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