From acabefe3f8fb58c867c99fed9bbf84dfa1771727 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Tue, 11 Jan 2022 22:33:16 +0000 Subject: [PATCH] upstream: remove hardcoded domain and use window.location.host, so this can be run anywhere OpenBSD-Regress-ID: 2ac2ade3b6227d9c547351d3ccdfe671e62b7f92 --- regress/unittests/sshsig/webauthn.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/unittests/sshsig/webauthn.html b/regress/unittests/sshsig/webauthn.html index 1869c8b37..5c9a32e9e 100644 --- a/regress/unittests/sshsig/webauthn.html +++ b/regress/unittests/sshsig/webauthn.html @@ -372,8 +372,8 @@ function enrollStart(username) { let pkopts = { challenge: challenge, rp: { - name: "mindrot.org", - id: "mindrot.org", + name: window.location.host, + id: window.location.host, }, user: { id: userid, @@ -590,7 +590,7 @@ async function assertform_submit(event) { function assertStart(message) { let assertReqOpts = { challenge: message, - rpId: "mindrot.org", + rpId: window.location.host, allowCredentials: [{ type: 'public-key', id: window.enrollResult.rawId,