idk
This commit is contained in:
parent
594aaa18d6
commit
9891eea5d5
@ -5,7 +5,7 @@
|
|||||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="jdk" jdkName="Python 3.11 (CNSA-276-FP)" jdkType="Python SDK" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
@ -3,5 +3,5 @@
|
|||||||
<component name="Black">
|
<component name="Black">
|
||||||
<option name="sdkName" value="Python 3.12 (CNSA-276-FP)" />
|
<option name="sdkName" value="Python 3.12 (CNSA-276-FP)" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (CNSA-276-FP)" project-jdk-type="Python SDK" />
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (CNSA-276-FP)" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
4
tet.py
4
tet.py
@ -6,7 +6,7 @@ from fido2.hid import CtapHidDevice
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# Setup the relying party (RP) entity
|
# Setup the relying party (RP) entity
|
||||||
rp = PublicKeyCredentialRpEntity("10.1.1.245", "Example RP")
|
rp = PublicKeyCredentialRpEntity("auth.eggtech.net", "Example RP")
|
||||||
|
|
||||||
# Setup the user entity
|
# Setup the user entity
|
||||||
user = PublicKeyCredentialUserEntity(
|
user = PublicKeyCredentialUserEntity(
|
||||||
@ -47,7 +47,7 @@ if device is None:
|
|||||||
raise ValueError("No FIDO device found")
|
raise ValueError("No FIDO device found")
|
||||||
|
|
||||||
# Client instance for the device
|
# Client instance for the device
|
||||||
client = Fido2Client(device, "10.1.1.245")
|
client = Fido2Client(device, "auth.eggtech.net")
|
||||||
|
|
||||||
# Use the manual options we created for make_credential
|
# Use the manual options we created for make_credential
|
||||||
attestation_object, client_data = client.make_credential(options)
|
attestation_object, client_data = client.make_credential(options)
|
||||||
|
Loading…
Reference in New Issue
Block a user