little bit o work

This commit is contained in:
EggMan 2024-04-26 16:26:05 -04:00
parent 708b5167af
commit 94811a651a
3 changed files with 6 additions and 3 deletions

View File

@ -2,9 +2,10 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.venv" />
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.12 (CNSA-276-FP)" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="Python 3.11 (CNSA-276-FP)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -3,5 +3,5 @@
<component name="Black">
<option name="sdkName" value="Python 3.12 (CNSA-276-FP)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (CNSA-276-FP)" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (CNSA-276-FP)" project-jdk-type="Python SDK" />
</project>

View File

@ -18,8 +18,10 @@ server = Fido2Server(rp)
user = {"id": b"user_id", "name": "john_doe", "displayName": "John Doe"}
challenge = server.register_begin(user)
print(challenge)
# Prompt user to perform registration action on the device
attestation_object, client_data = client.make_credential(challenge['publicKey'])
attestation_object, client_data = client.make_credential()
# Finalize registration on the server
auth_data = server.register_complete(challenge['state'], client_data, attestation_object)