Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full Integration Testing (in dotnet, preferably) #200

Open
Trolldemorted opened this issue Nov 17, 2020 · 3 comments
Open

Full Integration Testing (in dotnet, preferably) #200

Trolldemorted opened this issue Nov 17, 2020 · 3 comments

Comments

@Trolldemorted
Copy link

I am considering using webauthn/fido2-net-lib for a project, but I couldn't find documentation that covers whether I can fully test the registration/login flow with a real user agent. Can I do that more or less easily, preferably with a normal dotnet HttpClient?

@aseigler
Copy link
Collaborator

Did you see the demo site? It's the code behind https://passwordless.dev. Or maybe I am misunderstanding the question.

@Trolldemorted
Copy link
Author

I think you are - I require a dotnet api which implements a FIDO2 authenticator (the client's side of things), and can easily be combined with dotnet's HttpClient. Testing non-passwordless web apis with simulated user agents are straightforward (POST to the login endpoint with the correct credentials, extract cookie/token), but with FIDO2's cryptographic handshake it is not.

https://passwordless.dev is a nice demo for a server project, but I didn't find any tests that covered the entire registration->login->logout workflow with a "real" webauthn client.

@abergs
Copy link
Collaborator

abergs commented Nov 18, 2020

Depending on how you define "real" that would be difficult, since a "real" Authenticator needs to verify User Presence etc.

Our unit test does test assertion with pre-determined payloads, you could have a look on those and see if it would be suitable.

I haven't seen a .net software Authenticator, but then I haven't really looked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants