Yubico / Yubico.NET.SDK

A YubiKey SDK for .NET developers
Apache License 2.0
96 stars 48 forks source link

[Question]: Fido2 Registration - From Java -> .NET Desktop #86

Closed ghostidentity closed 1 month ago

ghostidentity commented 1 month ago

Is there an existing issue for this?

What is your question?

Hello,

Im testing the fido2 registration process, the server will send request.toCredentialsCreateJson() to client as json (sent from Java). On what part of Fido2Sample code I can use the json value and complete the registration?

image

When loading the project, it throws many errors.

image

Context

No response

ghostidentity commented 1 month ago

Also would to request a sample project (console based, preferably .net 8) that highlights the process on how to register fido2 (client workflow) upon receiving credentialCreateJson.json from java server.

ghostidentity commented 1 month ago

Closing, i was expecting fido2session (client side) has helper method to parse the output of toCredentialsCreateJson (server)

Server:

return request.toCredentialsCreateJson();

Client:

Fido2Session fido2Session = new Fido2Session(device) fidoSession.parseCredential(request)

But it turns out that another method has to be developed to process the challenge code.