Skip to content

Commit

Permalink
chore: snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Feb 13, 2024
1 parent 69d609e commit f5eff53
Show file tree
Hide file tree
Showing 26 changed files with 46 additions and 49 deletions.
2 changes: 1 addition & 1 deletion contrib/quickstart/kratos/all-strategies/kratos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ selfservice:
password:
enabled: true
webauthn:
enabled: true
enabled: false
config:
passwordless: true
rp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"async": true,
"referrerpolicy": "no-referrer",
"crossorigin": "anonymous",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"type": "text/javascript",
"node_type": "script"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"async": true,
"referrerpolicy": "no-referrer",
"crossorigin": "anonymous",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"type": "text/javascript",
"node_type": "script"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"async": true,
"crossorigin": "anonymous",
"id": "webauthn_script",
"integrity": "sha512-gqNkamAoznY0TaTepNY5BgL/PA6R0csbBfGCD3SKiziJ8R77AlR+xlN5EIGRvMummLNpYrbA/Qf549DvD5ngpA==",
"integrity": "sha512-fMylX5h+UK/Cb8ha7P4MBTcbtZ7NPXPV2ZVet49V5ZjJki1q2KJnk+HUohPzNdrndTQad4VRsMwOyPkWZ4GHVw==",
"node_type": "script",
"referrerpolicy": "no-referrer",
"type": "text/javascript"
Expand Down
45 changes: 21 additions & 24 deletions x/webauthnx/js/webauthn.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,31 +287,28 @@
)
}

setTimeout(async () => {
navigator.credentials
.create(opt)
.then(function (credential) {
resultEl.value = JSON.stringify({
id: credential.id,
rawId: __oryWebAuthnBufferEncode(credential.rawId),
type: credential.type,
response: {
attestationObject: __oryWebAuthnBufferEncode(
credential.response.attestationObject,
),
clientDataJSON: __oryWebAuthnBufferEncode(
credential.response.clientDataJSON,
),
},
})

resultEl.closest("form").submit()
navigator.credentials
.create(opt)
.then(function (credential) {
resultEl.value = JSON.stringify({
id: credential.id,
rawId: __oryWebAuthnBufferEncode(credential.rawId),
type: credential.type,
response: {
attestationObject: __oryWebAuthnBufferEncode(
credential.response.attestationObject,
),
clientDataJSON: __oryWebAuthnBufferEncode(
credential.response.clientDataJSON,
),
},
})
.catch((err) => {
console.error(err)
}),
1000
})

resultEl.closest("form").submit()
})
.catch((err) => {
console.error(err)
})
}

function __oryPasskeySettingsRegistration() {
Expand Down

0 comments on commit f5eff53

Please sign in to comment.