testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

Web sites requiring WebAuthn do not work with hammerhead

Open adriancable opened this issue 4 years ago • 5 comments

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:

  1. Go to: https://webauthn.io in the http-playground
  2. Type 'test_user' into the 'example_username' box
  3. 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)

adriancable avatar Jun 09 '20 15:06 adriancable

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.

AlexanderMoiseev avatar Jun 10 '20 14:06 AlexanderMoiseev

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.

github-actions[bot] avatar Jun 11 '21 01:06 github-actions[bot]

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.

github-actions[bot] avatar Jun 21 '21 01:06 github-actions[bot]

@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

thiagonzalez avatar May 19 '22 14:05 thiagonzalez

No updates yet. Once we get any results, we will post them in this thread.

github-actions[bot] avatar May 20 '22 06:05 github-actions[bot]

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.

github-actions[bot] avatar Jul 21 '23 01:07 github-actions[bot]

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.

github-actions[bot] avatar Aug 01 '23 01:08 github-actions[bot]