Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/data/webAuthnRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ document.addEventListener('alpine:init', () => {
result instanceof PublicKeyCredential &&
result.response instanceof AuthenticatorAttestationResponse
) {
const { getTransports } = result.response;

window.result = result;

const publicKeyCredentialId = result.rawId;
Expand All @@ -192,8 +190,8 @@ document.addEventListener('alpine:init', () => {
{ pad: false }
);

if (typeof getTransports === 'function') {
const transports = getTransports();
if (typeof result.response.getTransports === 'function') {
const transports = result.response.getTransports();

if (transports) {
transportsInput.value = getTransportsAsString(transports);
Expand All @@ -216,7 +214,7 @@ document.addEventListener('alpine:init', () => {
}
})
.catch(function (error) {
error.value = error;
errorInput.value = error;
registerForm.submit();
});
},
Expand Down
16 changes: 16 additions & 0 deletions theme/keywind/login/delete-credential.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<#import "template.ftl" as layout>
<#import "components/atoms/button.ftl" as button>

<@layout.registrationLayout displayMessage=false; section>
<#if section = "header">
${msg("deleteCredentialTitle", credentialLabel)}
<#elseif section = "form">
<div id="kc-delete-text">
${msg("deleteCredentialMessage", credentialLabel)}
</div>
<form class="form-actions space-y-1" action="${url.loginAction}" method="POST">
<@button.kw name="accept" color="primary" type="submit">${msg("doConfirmDelete")}</@button.kw>
<@button.kw name="cancel-aia" color="secondary" type="submit">${msg("doCancel")}</@button.kw>
</form>
</#if>
</@layout.registrationLayout>
2 changes: 1 addition & 1 deletion theme/keywind/login/resources/dist/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion theme/keywind/login/resources/dist/webAuthnRegister.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion theme/keywind/login/webauthn-register.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
requireResidentKey: '${requireResidentKey}',
rpEntityName: '${rpEntityName}',
rpId: '${rpId}',
signatureAlgorithms: '${signatureAlgorithms}',
signatureAlgorithms: '<#list signatureAlgorithms as sigAlg>${sigAlg?c},</#list>',
unsupportedBrowserText: '${msg("webauthn-unsupported-browser-text")?no_esc}',
userId: '${userid}',
userVerificationRequirement: '${userVerificationRequirement}',
Expand Down