diff --git a/internal/oidc/provider_test.go b/internal/oidc/provider_test.go index da1ebbac6..4a1a0b115 100644 --- a/internal/oidc/provider_test.go +++ b/internal/oidc/provider_test.go @@ -70,7 +70,7 @@ func TestOpenIDConnectProvider_NewOpenIDConnectProvider_GoodConfiguration(t *tes }, { ID: "b-client", - Description: "Normal DisplayName", + Description: "Normal Description", Secret: MustDecodeSecret("$plaintext$b-client-secret"), Policy: twofactor, RedirectURIs: []string{ diff --git a/internal/server/locales/en/settings.json b/internal/server/locales/en/settings.json index d3a780faa..c36238c39 100644 --- a/internal/server/locales/en/settings.json +++ b/internal/server/locales/en/settings.json @@ -3,50 +3,50 @@ "Add": "Add", "Add Credential": "Add Credential", "Added": "Added {{when, datetime}}", - "Are you sure you want to remove the Webauthn credential from from your account": "Are you sure you want to remove the Webauthn credential {{description}} from your account?", + "Are you sure you want to remove the WebAuthn credential from from your account": "Are you sure you want to remove the WebAuthn credential {{description}} from your account?", "Attestation Type": "Attestation Type", "Authenticator GUID": "Authenticator GUID", "Cancel": "Cancel", - "Click to add a Webauthn credential to your account": "Click to add a Webauthn credential to your account", + "Click to add a WebAuthn credential to your account": "Click to add a WebAuthn credential to your account", "Click to copy the": "Click to copy the", "Clone Warning": "Clone Warning", "Created": "Created", "Delete": "Delete", "Details": "Details", - "Display extended information for this Webauthn credential": "Display extended information for this Webauthn credential", + "Display extended information for this WebAuthn credential": "Display extended information for this WebAuthn credential", "Edit": "Edit", - "Edit information for this Webauthn credential": "Edit information for this Webauthn credential", - "Edit Webauthn Credential": "Edit Webauthn Credential", + "Edit information for this WebAuthn credential": "Edit information for this WebAuthn credential", + "Edit WebAuthn Credential": "Edit WebAuthn Credential", "Enabled": "Enabled", - "Enter a new name for this Webauthn credential": "Enter a new name for this Webauthn credential:", + "Enter a new name for this WebAuthn credential": "Enter a new name for this WebAuthn credential:", "Enter a description for this credential": "Enter a description for this credential", - "Extended Webauthn credential information for security key": "Extended Webauthn credential information for security key {{description}}", + "Extended WebAuthn credential information for security key": "Extended WebAuthn credential information for security key {{description}}", "Identifier": "Identifier", "Last Used": "Last Used {{when, datetime}}", "Manage your security keys": "Manage your security keys", "Name": "Name", "No": "No", - "No Registered Webauthn Credentials": "No Registered Webauthn Credentials", + "No Registered WebAuthn Credentials": "No Registered WebAuthn Credentials", "Overview": "Overview", "Provide the details for the new security key": "Provide the details for the new security key", - "Register Webauthn Credential": "Register Webauthn Credential", + "Register WebAuthn Credential": "Register WebAuthn Credential", "Relying Party ID": "Relying Party ID", "Remove": "Remove", - "Remove this Webauthn credential": "Remove this Webauthn credential", - "Remove Webauthn Credential": "Remove Webauthn Credential", + "Remove this WebAuthn credential": "Remove this WebAuthn credential", + "Remove WebAuthn Credential": "Remove WebAuthn Credential", "Settings": "Settings", - "Successfully deleted the Webauthn credential": "Successfully deleted the Webauthn credential", - "Successfully updated the Webauthn credential": "Successfully updated the Webauthn credential", - "There was a problem deleting the Webauthn credential": "There was a problem deleting the Webauthn credential", - "There was a problem updating the Webauthn credential": "There was a problem updating the Webauthn credential", + "Successfully deleted the WebAuthn credential": "Successfully deleted the WebAuthn credential", + "Successfully updated the WebAuthn credential": "Successfully updated the WebAuthn credential", + "There was a problem deleting the WebAuthn credential": "There was a problem deleting the WebAuthn credential", + "There was a problem updating the WebAuthn credential": "There was a problem updating the WebAuthn credential", "Transports": "Transports", "Two-Factor Authentication": "Two-Factor Authentication", "Usage Count": "Usage Count", - "Webauthn Credential Details": "Webauthn Credential Details", - "Webauthn Credentials": "Webauthn Credentials", + "WebAuthn Credential Details": "WebAuthn Credential Details", + "WebAuthn Credentials": "WebAuthn Credentials", "Yes": "Yes", - "You must have a higher authentication level to delete Webauthn credentials": "You must have a higher authentication level to delete Webauthn credentials", - "You must be elevated to delete Webauthn credentials": "You must be elevated to delete Webauthn credentials", - "You must have a higher authentication level to update Webauthn credentials": "You must have a higher authentication level to update Webauthn credentials", - "You must be elevated to update Webauthn credentials": "You must be elevated to update Webauthn credentials" + "You must have a higher authentication level to delete WebAuthn credentials": "You must have a higher authentication level to delete WebAuthn credentials", + "You must be elevated to delete WebAuthn credentials": "You must be elevated to delete WebAuthn credentials", + "You must have a higher authentication level to update WebAuthn credentials": "You must have a higher authentication level to update WebAuthn credentials", + "You must be elevated to update WebAuthn credentials": "You must be elevated to update WebAuthn credentials" } diff --git a/internal/storage/migrations/V0002.Webauthn.mysql.down.sql b/internal/storage/migrations/V0002.WebAuthn.mysql.down.sql similarity index 100% rename from internal/storage/migrations/V0002.Webauthn.mysql.down.sql rename to internal/storage/migrations/V0002.WebAuthn.mysql.down.sql diff --git a/internal/storage/migrations/V0002.Webauthn.mysql.up.sql b/internal/storage/migrations/V0002.WebAuthn.mysql.up.sql similarity index 100% rename from internal/storage/migrations/V0002.Webauthn.mysql.up.sql rename to internal/storage/migrations/V0002.WebAuthn.mysql.up.sql diff --git a/internal/storage/migrations/V0002.Webauthn.postgres.down.sql b/internal/storage/migrations/V0002.WebAuthn.postgres.down.sql similarity index 100% rename from internal/storage/migrations/V0002.Webauthn.postgres.down.sql rename to internal/storage/migrations/V0002.WebAuthn.postgres.down.sql diff --git a/internal/storage/migrations/V0002.Webauthn.postgres.up.sql b/internal/storage/migrations/V0002.WebAuthn.postgres.up.sql similarity index 100% rename from internal/storage/migrations/V0002.Webauthn.postgres.up.sql rename to internal/storage/migrations/V0002.WebAuthn.postgres.up.sql diff --git a/internal/storage/migrations/V0002.Webauthn.sqlite.down.sql b/internal/storage/migrations/V0002.WebAuthn.sqlite.down.sql similarity index 100% rename from internal/storage/migrations/V0002.Webauthn.sqlite.down.sql rename to internal/storage/migrations/V0002.WebAuthn.sqlite.down.sql diff --git a/internal/storage/migrations/V0002.Webauthn.sqlite.up.sql b/internal/storage/migrations/V0002.WebAuthn.sqlite.up.sql similarity index 100% rename from internal/storage/migrations/V0002.Webauthn.sqlite.up.sql rename to internal/storage/migrations/V0002.WebAuthn.sqlite.up.sql diff --git a/internal/storage/migrations/V0003.WebauthnKIDLength.all.down.sql b/internal/storage/migrations/V0003.WebAuthnKIDLength.all.down.sql similarity index 100% rename from internal/storage/migrations/V0003.WebauthnKIDLength.all.down.sql rename to internal/storage/migrations/V0003.WebAuthnKIDLength.all.down.sql diff --git a/internal/storage/migrations/V0003.WebauthnKIDLength.mysql.up.sql b/internal/storage/migrations/V0003.WebAuthnKIDLength.mysql.up.sql similarity index 100% rename from internal/storage/migrations/V0003.WebauthnKIDLength.mysql.up.sql rename to internal/storage/migrations/V0003.WebAuthnKIDLength.mysql.up.sql diff --git a/internal/storage/migrations/V0003.WebauthnKIDLength.postgres.up.sql b/internal/storage/migrations/V0003.WebAuthnKIDLength.postgres.up.sql similarity index 100% rename from internal/storage/migrations/V0003.WebauthnKIDLength.postgres.up.sql rename to internal/storage/migrations/V0003.WebAuthnKIDLength.postgres.up.sql diff --git a/internal/storage/migrations/V0003.WebauthnKIDLength.sqlite.up.sql b/internal/storage/migrations/V0003.WebAuthnKIDLength.sqlite.up.sql similarity index 100% rename from internal/storage/migrations/V0003.WebauthnKIDLength.sqlite.up.sql rename to internal/storage/migrations/V0003.WebAuthnKIDLength.sqlite.up.sql diff --git a/internal/storage/migrations/V0010.WebauthnMultiCookieDomain.mysql.down.sql b/internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.mysql.down.sql similarity index 100% rename from internal/storage/migrations/V0010.WebauthnMultiCookieDomain.mysql.down.sql rename to internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.mysql.down.sql diff --git a/internal/storage/migrations/V0010.WebauthnMultiCookieDomain.mysql.up.sql b/internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.mysql.up.sql similarity index 100% rename from internal/storage/migrations/V0010.WebauthnMultiCookieDomain.mysql.up.sql rename to internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.mysql.up.sql diff --git a/internal/storage/migrations/V0010.WebauthnMultiCookieDomain.postgres.down.sql b/internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.postgres.down.sql similarity index 100% rename from internal/storage/migrations/V0010.WebauthnMultiCookieDomain.postgres.down.sql rename to internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.postgres.down.sql diff --git a/internal/storage/migrations/V0010.WebauthnMultiCookieDomain.postgres.up.sql b/internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.postgres.up.sql similarity index 100% rename from internal/storage/migrations/V0010.WebauthnMultiCookieDomain.postgres.up.sql rename to internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.postgres.up.sql diff --git a/internal/storage/migrations/V0010.WebauthnMultiCookieDomain.sqlite.down.sql b/internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.sqlite.down.sql similarity index 100% rename from internal/storage/migrations/V0010.WebauthnMultiCookieDomain.sqlite.down.sql rename to internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.sqlite.down.sql diff --git a/internal/storage/migrations/V0010.WebauthnMultiCookieDomain.sqlite.up.sql b/internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.sqlite.up.sql similarity index 100% rename from internal/storage/migrations/V0010.WebauthnMultiCookieDomain.sqlite.up.sql rename to internal/storage/migrations/V0010.WebAuthnMultiCookieDomain.sqlite.up.sql diff --git a/web/src/components/WebauthnRegisterIcon.tsx b/web/src/components/WebAuthnRegisterIcon.tsx similarity index 94% rename from web/src/components/WebauthnRegisterIcon.tsx rename to web/src/components/WebAuthnRegisterIcon.tsx index d29dc0c33..76ab9f502 100644 --- a/web/src/components/WebauthnRegisterIcon.tsx +++ b/web/src/components/WebAuthnRegisterIcon.tsx @@ -12,7 +12,7 @@ interface Props { timeout: number; } -export default function WebauthnRegisterIcon(props: Props) { +export default function WebAuthnRegisterIcon(props: Props) { const theme = useTheme(); const [timerPercent, triggerTimer] = useTimer(props.timeout); diff --git a/web/src/components/WebauthnTryIcon.tsx b/web/src/components/WebAuthnTryIcon.tsx similarity index 86% rename from web/src/components/WebauthnTryIcon.tsx rename to web/src/components/WebAuthnTryIcon.tsx index a7c9fd1d6..42bacacf0 100644 --- a/web/src/components/WebauthnTryIcon.tsx +++ b/web/src/components/WebAuthnTryIcon.tsx @@ -7,15 +7,15 @@ import FailureIcon from "@components/FailureIcon"; import FingerTouchIcon from "@components/FingerTouchIcon"; import LinearProgressBar from "@components/LinearProgressBar"; import { useTimer } from "@hooks/Timer"; -import { WebauthnTouchState } from "@models/Webauthn"; +import { WebAuthnTouchState } from "@models/WebAuthn"; import IconWithContext from "@views/LoginPortal/SecondFactor/IconWithContext"; interface Props { onRetryClick: () => void; - webauthnTouchState: WebauthnTouchState; + webauthnTouchState: WebAuthnTouchState; } -export default function WebauthnTryIcon(props: Props) { +export default function WebAuthnTryIcon(props: Props) { const touchTimeout = 30; const theme = useTheme(); const [timerPercent, triggerTimer, clearTimer] = useTimer(touchTimeout * 1000 - 500); @@ -42,7 +42,7 @@ export default function WebauthnTryIcon(props: Props) { const touch = ( } - className={props.webauthnTouchState === WebauthnTouchState.WaitTouch ? undefined : "hidden"} + className={props.webauthnTouchState === WebAuthnTouchState.WaitTouch ? undefined : "hidden"} > @@ -51,7 +51,7 @@ export default function WebauthnTryIcon(props: Props) { const failure = ( } - className={props.webauthnTouchState === WebauthnTouchState.Failure ? undefined : "hidden"} + className={props.webauthnTouchState === WebAuthnTouchState.Failure ? undefined : "hidden"} >