Add RegistrationService. This is a service for testing.#70
Conversation
It is used for testing to mimic the server starting and finishing a web authentication. The test code wraps the registration service with http handlers. The client invokes the test http service to as part of its start, create credential, finish protocol.
|
Where are you headed with the test service? One of the things I was doing was creating e2e tests via the example projects. I got a first pass at a CI job that does it, and if the CI doesn't fail me, is working now. But with the typescript services you are doing, where are you headed? (Given the server is Java) |
Yeah; probably should have put more detail in the first pr. Claude can write me a basic web authn server in typescript where i can test the client with happy paths and various failure paths. Its the failure paths that get the most benefit for having our own in-mem typescript service. While they [failure paths] are not that extensive in the client, they do exist: server start failing, server finish failing, browser credential fail, refresh fail, etc... Its absolutely a good idea to have e2e tests; but i don't think they should be exhaustive; and they are not as easy to setup for debugging. What do you think? |
|
I think its reasonable as you can test various unhappy paths faster for sure. The latest version has a I'm going to setup a discussion link for this stuff so we don't just talk though PRs on planning... |
It is used for testing to mimic the server starting and finishing a web authentication. The test code
wraps the registration service with http handlers. The client invokes the test http service to as part of its start, create credential, finish protocol.