-
I am using this library to implement the server side API to authenticate using webauthn in the browser. I would like to write a server-side test in Go to test my HTTP handlers: one which returns |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I would encourage anyone wanting to write integration tests to leverage the DevTools Protocol with Chrome to create a developer authenticator and credentials. See here. Then I'd leverage a client library or your own implementation to perform the relevant API requests to start/finish each ceremony. The github.com/go-rod/rod module has tooling for this. It also allows interacting with a web UI. I believe you are correct about the process for generating a creation, however it is also probably not an idea integration test. |
Beta Was this translation helpful? Give feedback.
I managed to do it. There are few missing pieces in this library to make this easier:
ParsePublicKey
, but not serialization.RawAuthData
, but not to create one fromAuthenticatorData
.