fix: more webauthn consistency fixes

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
feat-otp-verification
James Elliott 2023-04-15 11:00:52 +10:00
parent 1341ef79d6
commit e464295c8b
No known key found for this signature in database
GPG Key ID: 0F1C4A096E857E49
28 changed files with 59 additions and 38 deletions

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Tajný klíč",
"Security Key - WebAuthN": "Bezpečnostní klíč - WebAuthN",
"Security Key - WebAuthn": "Bezpečnostní klíč - WebAuthn",
"Select a Device": "Vybrat zařízení",
"Sign in": "Přihlásit se",
"Sign out": "Odhlásit se",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Hemmelighed",
"Security Key - WebAuthN": "Sikkerhedsnøgle - WebAuthN",
"Security Key - WebAuthn": "Sikkerhedsnøgle - WebAuthn",
"Select a Device": "Vælg en enhed",
"Sign in": "Log ind",
"Sign out": "Log ud",

View File

@ -50,7 +50,7 @@
"Reset": "Zurücksetzen",
"Scan QR Code": "QR-Code scannen",
"Secret": "Geheimnis",
"Security Key - WebAuthN": "Sicherheitsschlüssel - WebAuthN",
"Security Key - WebAuthn": "Sicherheitsschlüssel - WebAuthn",
"Select a Device": "Gerät auswählen",
"Sign in": "Anmelden",
"Sign out": "Abmelden",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Μυστικό",
"Security Key - WebAuthN": "Κλειδί Ασφαλείας - WebAuthn",
"Security Key - WebAuthn": "Κλειδί Ασφαλείας - WebAuthn",
"Select a Device": "Επιλέξτε μια συσκευή",
"Sign in": "Σύνδεση",
"Sign out": "Αποσύνδεση",

View File

@ -53,7 +53,7 @@
"Scan QR Code": "Scan QR Code",
"Scope": "Scope {{name}}",
"Secret": "Secret",
"Security Key - WebAuthN": "Security Key - WebAuthN",
"Security Key - WebAuthn": "Security Key - WebAuthn",
"Select a Device": "Select a Device",
"Sign in": "Sign in",
"Sign out": "Sign out",

View File

@ -50,7 +50,7 @@
"Reset": "Restablecer",
"Scan QR Code": "Escanear Código QR",
"Secret": "Secreto",
"Security Key - WebAuthN": "Clave de seguridad - WebAuthN",
"Security Key - WebAuthn": "Clave de seguridad - WebAuthn",
"Select a Device": "Seleccionar Dispositivo",
"Sign in": "Iniciar Sesión",
"Sign out": "Cerrar Sesión",

View File

@ -50,7 +50,7 @@
"Reset": "Nollaa",
"Scan QR Code": "Skannaa QR-koodi",
"Secret": "Salainen",
"Security Key - WebAuthN": "Suojausavain - WebAuthN",
"Security Key - WebAuthn": "Suojausavain - WebAuthn",
"Select a Device": "Valitse laite",
"Sign in": "Kirjaudu sisään",
"Sign out": "Kirjaudu ulos",

View File

@ -50,7 +50,7 @@
"Reset": "Réinitialiser",
"Scan QR Code": "Scannez le QR Code",
"Secret": "Secret",
"Security Key - WebAuthN": "Clé de sécurité - WebAuthN",
"Security Key - WebAuthn": "Clé de sécurité - WebAuthn",
"Select a Device": "Sélectionnez un appareil",
"Sign in": "Se connecter",
"Sign out": "Se déconnecter",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Segreto",
"Security Key - WebAuthN": "Chiave Di Sicurezza - WebAuthN",
"Security Key - WebAuthn": "Chiave Di Sicurezza - WebAuthn",
"Select a Device": "Seleziona un dispositivo",
"Sign in": "Accedi",
"Sign out": "Esci",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "シークレット",
"Security Key - WebAuthN": "セキュリティキー - WebAuthN",
"Security Key - WebAuthn": "セキュリティキー - WebAuthn",
"Select a Device": "デバイスを選択",
"Sign in": "サインイン",
"Sign out": "サインアウト",

View File

@ -51,7 +51,7 @@
"Reset": "Tilbakestill",
"Scan QR Code": "Skann QR Kode",
"Secret": "Hemmelig",
"Security Key - WebAuthN": "Sikkerhetsnøkkel - WebAuthN",
"Security Key - WebAuthn": "Sikkerhetsnøkkel - WebAuthn",
"Select a Device": "Velg en enhet",
"Sign in": "Logg inn",
"Sign out": "Logg ut",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Geheim",
"Security Key - WebAuthN": "Beveiligingssleutel - WebAuthN",
"Security Key - WebAuthn": "Beveiligingssleutel - WebAuthn",
"Select a Device": "Selecteer een apparaat",
"Sign in": "Log in",
"Sign out": "Log uit",

View File

@ -51,7 +51,7 @@
"Reset": "Tilbakestill",
"Scan QR Code": "Skann QR Kode",
"Secret": "Hemmelig",
"Security Key - WebAuthN": "Sikkerhetsnøkkel - WebAuthN",
"Security Key - WebAuthn": "Sikkerhetsnøkkel - WebAuthn",
"Select a Device": "Velg en enhet",
"Sign in": "Logg inn",
"Sign out": "Logg ut",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Sekretny",
"Security Key - WebAuthN": "Klucz bezpieczeństwa - WebAuthN",
"Security Key - WebAuthn": "Klucz bezpieczeństwa - WebAuthn",
"Select a Device": "Wybierz urządzenie",
"Sign in": "Zaloguj się",
"Sign out": "Wyloguj się",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Segredo",
"Security Key - WebAuthN": "Chave de segurança - WebAuthN",
"Security Key - WebAuthn": "Chave de segurança - WebAuthn",
"Select a Device": "Selecione um dispositivo",
"Sign in": "Iniciar sessão",
"Sign out": "Encerrar sessão",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Ler Código QR",
"Secret": "Segredo",
"Security Key - WebAuthN": "Chave de Segurança - WebAuthN",
"Security Key - WebAuthn": "Chave de Segurança - WebAuthn",
"Select a Device": "Selecione um Dispositivo",
"Sign in": "Iniciar sessão",
"Sign out": "Terminar sessão",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Secret",
"Security Key - WebAuthN": "Cheie de securitate - WebAuthN",
"Security Key - WebAuthn": "Cheie de securitate - WebAuthn",
"Select a Device": "Selectați un dispozitiv",
"Sign in": "Autentificare",
"Sign out": "Deconectare",

View File

@ -50,7 +50,7 @@
"Reset": "Сбросить",
"Scan QR Code": "Отсканировать QR Code",
"Secret": "Секрет",
"Security Key - WebAuthN": "Сектретный ключ - WebAuthN",
"Security Key - WebAuthn": "Сектретный ключ - WebAuthn",
"Select a Device": "Выберите устройство",
"Sign in": "Авторизация",
"Sign out": "Выход",

View File

@ -50,7 +50,7 @@
"Reset": "Återställ",
"Scan QR Code": "Skanna QR koden",
"Secret": "Kod",
"Security Key - WebAuthN": "Säkerhetsnyckel - WebAuthN",
"Security Key - WebAuthn": "Säkerhetsnyckel - WebAuthn",
"Select a Device": "Välj en enhet",
"Sign in": "Logga in",
"Sign out": "Logga ut",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "Scan QR Code",
"Secret": "Секрет",
"Security Key - WebAuthN": "Ключ безпеки - WebAuthN",
"Security Key - WebAuthn": "Ключ безпеки - WebAuthn",
"Select a Device": "Оберіть пристрій",
"Sign in": "Увійти",
"Sign out": "Вийти",

View File

@ -50,7 +50,7 @@
"Reset": "Reset",
"Scan QR Code": "扫描二维码",
"Secret": "密钥",
"Security Key - WebAuthN": "安全密钥 - WebAuthN",
"Security Key - WebAuthn": "安全密钥 - WebAuthn",
"Select a Device": "选择一个设备",
"Sign in": "登录",
"Sign out": "登出",

View File

@ -47,7 +47,7 @@
"Reset": "重設",
"Scan QR Code": "掃描 QR Code",
"Secret": "密錀",
"Security Key - WebAuthN": "Security Key - WebAuthN",
"Security Key - WebAuthn": "Security Key - WebAuthn",
"Select a Device": "選擇裝置",
"Sign in": "登入",
"Sign out": "登出",

View File

@ -1,11 +1,32 @@
{
"Base":"{{ .Base }}",
"DuoSelfEnrollment":"{{ .DuoSelfEnrollment }}",
"LogoOverride":"{{ .LogoOverride }}",
"RememberMe":"{{ .RememberMe }}",
"ResetPassword":"{{ .ResetPassword }}",
"ResetPasswordCustomURL":"{{ .ResetPasswordCustomURL }}",
"PrivacyPolicyURL":"{{ .PrivacyPolicyURL }}",
"PrivacyPolicyAccept":"{{ .PrivacyPolicyAccept }}",
"Theme":"{{ .Theme }}"
}
<!DOCTYPE html>
<html lang="en">
<head>
<base href="{{ .BaseURL }}" />
<meta property="csp-nonce" content="{{ .CSPNonce }}" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Authelia login portal for your apps" />
<link rel="manifest" href="./manifest.json" />
<link rel="icon" href="./favicon.ico" />
<title>Login - Authelia</title>
<script type="module" crossorigin src="./static/js/index.78b807a3.js"></script>
<link rel="stylesheet" href="./static/css/index.9502ad8b.css">
</head>
<body
data-basepath="{{ .Base }}"
data-duoselfenrollment="{{ .DuoSelfEnrollment }}"
data-logooverride="{{ .LogoOverride }}"
data-privacypolicyaccept="{{ .PrivacyPolicyAccept }}"
data-privacypolicyurl="{{ .PrivacyPolicyURL }}"
data-rememberme="{{ .RememberMe }}"
data-resetpassword="{{ .ResetPassword }}"
data-resetpasswordcustomurl="{{ .ResetPasswordCustomURL }}"
data-theme="{{ .Theme }}"
>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>

View File

@ -65,7 +65,7 @@ export function AssertionResultFailureString(result: AssertionResult) {
case AssertionResult.FailureSyntax:
return "The assertion challenge was rejected as malformed or incompatible by your browser.";
case AssertionResult.FailureWebAuthnNotSupported:
return "Your browser does not support the WebAuthN protocol.";
return "Your browser does not support the WebAuthn protocol.";
case AssertionResult.FailureUnrecognized:
return "This device is not registered.";
case AssertionResult.FailureUnknownSecurity:
@ -86,7 +86,7 @@ export function AttestationResultFailureString(result: AttestationResult) {
case AttestationResult.FailureSyntax:
return "The attestation challenge was rejected as malformed or incompatible by your browser.";
case AttestationResult.FailureWebAuthnNotSupported:
return "Your browser does not support the WebAuthN protocol.";
return "Your browser does not support the WebAuthn protocol.";
case AttestationResult.FailureUserConsent:
return "You cancelled the attestation request.";
case AttestationResult.FailureUserVerificationOrResidentKey:

View File

@ -69,7 +69,7 @@ function getAttestationResultFromDOMException(exception: DOMException): Attestat
// § 6.3.2 Step 4.
return AttestationResult.FailureUserVerificationOrResidentKey;
default:
console.error(`Unhandled DOMException occurred during WebAuthN attestation: ${exception}`);
console.error(`Unhandled DOMException occurred during WebAuthn attestation: ${exception}`);
return AttestationResult.FailureUnknown;
}
}
@ -99,7 +99,7 @@ function getAssertionResultFromDOMException(
return AssertionResult.FailureUnknownSecurity;
}
default:
console.error(`Unhandled DOMException occurred during WebAuthN assertion: ${exception}`);
console.error(`Unhandled DOMException occurred during WebAuthn assertion: ${exception}`);
return AssertionResult.FailureUnknown;
}
}

View File

@ -42,7 +42,7 @@ const MethodSelectionDialog = function (props: Props) {
{props.methods.has(SecondFactorMethod.WebAuthn) && props.webauthnSupported ? (
<MethodItem
id="webauthn-option"
method={translate("Security Key - WebAuthN")}
method={translate("Security Key - WebAuthn")}
icon={<FingerTouchIcon size={32} />}
onClick={() => props.onClick(SecondFactorMethod.WebAuthn)}
/>