testcafe
testcafe copied to clipboard
Web sites requiring WebAuthn do not work with hammerhead
What is your Scenario?
Log into any web site that requires WebAuthn, for example the WebAuthn playground at WebAuthn.io.
What is the Current behavior?
Key registration fails. The following is logged in the console:
DOMException: The relying party ID is not a registrable domain suffix of, nor equal to the current domain.
This is because testcafe-hammerhead does not override navigator.credentials.create, and transform publicKey.rp.name. As a result, there is a domain mismatch.
What is the Expected behavior?
No DOM error. Key registration succeeds.
What is your public web site URL?
https://webauthn.io
Steps to Reproduce:
- Go to: https://webauthn.io in the http-playground
- Type 'test_user' into the 'example_username' box
- Press 'Register' button
Your Environment details:
- browser name and version: Chrome 83.0.4103.61
- platform and version: Mac OS X 10.15.4
- other: same issue with Safari 13.1 (15609.1.20.111.8)
Hello,
At the moment WebAuthn is not supported. Thank you for pointing that - we will consider implementing this feature in the future. Please follow this thread to stay tuned.
This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.
We're closing this issue after a prolonged period of inactivity. If it still affects you, please create a new issue with up-to-date information. Thank you.
@AlexanderMoiseev is this feature still not implemented? I'm trying to find a way to virtualize credentials to be able to run automation testing with our app that uses webauthn as the only way to authenticate and register accounts.
I found this very useful, but not sure how to setup it using Testcafe or even Cypress: https://chrome.google.com/webstore/detail/virtual-authenticators-ta/gafbpmlmeiikmhkhiapjlfjgdioafmja?hl=en
No updates yet. Once we get any results, we will post them in this thread.
This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.
We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you.