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"> <module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<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.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" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
</module> </module>

View File

@ -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.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> </project>

View File

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