From 1dba9d570f7c61c3408efd007a9f056314b9c0ac Mon Sep 17 00:00:00 2001 From: djm Date: Tue, 11 Jan 2022 22:33:16 +0000 Subject: [PATCH] remove hardcoded domain and use window.location.host, so this can be run anywhere --- regress/usr.bin/ssh/unittests/sshsig/webauthn.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/usr.bin/ssh/unittests/sshsig/webauthn.html b/regress/usr.bin/ssh/unittests/sshsig/webauthn.html index 1869c8b373c..5c9a32e9e47 100644 --- a/regress/usr.bin/ssh/unittests/sshsig/webauthn.html +++ b/regress/usr.bin/ssh/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, -- 2.20.1