]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: remove hardcoded domain and use window.location.host, so this
authordjm@openbsd.org <djm@openbsd.org>
Tue, 11 Jan 2022 22:33:16 +0000 (22:33 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 11 Jan 2022 22:36:01 +0000 (09:36 +1100)
can be run anywhere

OpenBSD-Regress-ID: 2ac2ade3b6227d9c547351d3ccdfe671e62b7f92

regress/unittests/sshsig/webauthn.html

index 1869c8b373cfa577cf7d6d5539c44c867c4b5c4c..5c9a32e9e47f8f38b84b03949f0590777ac1843f 100644 (file)
@@ -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,