IS-11288 adds new page to reregister a device linked to previous username#155
IS-11288 adds new page to reregister a device linked to previous username#155mkrzeminskicurity wants to merge 22 commits into
Conversation
Update main
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) from 7.9.5 to 7.12.0. - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/react-router@7.12.0/packages/react-router) --- updated-dependencies: - dependency-name: react-router dependency-version: 7.12.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.4.1 to 6.4.2. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.4.2/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.4.2/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 6.4.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.3.9 to 6.4.2. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.4.2/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.4.2/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 6.4.2 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.18.1. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.21...4.18.1) --- updated-dependencies: - dependency-name: lodash dependency-version: 4.18.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…mon/css/lib/lodash-4.18.1 Bump lodash from 4.17.21 to 4.18.1 in /src/common/css/lib
…mon/css/lib/vite-6.4.2 Bump vite from 4.3.9 to 6.4.2 in /src/common/css/lib
…mon/css/docs/vite-6.4.2 Bump vite from 6.4.1 to 6.4.2 in /src/common/css/docs
…outer-7.12.0 Bump react-router from 7.9.5 to 7.12.0
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.1.12 to 7.3.2. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v7.3.2/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v7.3.2/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 7.3.2 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Bump vite from 7.1.12 to 7.3.2
Bumps [defu](https://github.com/unjs/defu) from 6.1.4 to 6.1.7. - [Release notes](https://github.com/unjs/defu/releases) - [Changelog](https://github.com/unjs/defu/blob/main/CHANGELOG.md) - [Commits](unjs/defu@v6.1.4...v6.1.7) --- updated-dependencies: - dependency-name: defu dependency-version: 6.1.7 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…mon/css/docs/defu-6.1.7 Bump defu from 6.1.4 to 6.1.7 in /src/common/css/docs
There was a problem hiding this comment.
Pull request overview
Adds new “replace stale credential” pages for both WebAuthn and Passkeys authenticators, enabling a user to re-register a device when the previously registered credential is no longer valid (e.g., tied to an old username/account state).
Changes:
- Added new
replace-stale-credentialGET templates for WebAuthn and Passkeys. - Added corresponding client-side scripts to initiate credential creation and POST the resulting JSON back to the server.
- Added localized message bundles for EN, SV, PT, and PT-PT.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/identity-server/templates/core/authenticator/webauthn/replace-stale-credential/get.vm | New WebAuthn page template to initiate replacement registration. |
| src/identity-server/templates/core/authenticator/webauthn/js/replace-stale-credential.vm | WebAuthn JS flow to create a new credential and submit it. |
| src/identity-server/templates/core/authenticator/passkeys/replace-stale-credential/get.vm | New Passkeys page template to initiate replacement registration. |
| src/identity-server/templates/core/authenticator/passkeys/js/replace-stale-credential.vm | Passkeys JS flow to create a new credential and submit it. |
| src/identity-server/messages/core/sv/authenticator/webauthn/replace-stale-credential/messages | Swedish strings for WebAuthn replacement page. |
| src/identity-server/messages/core/sv/authenticator/passkeys/replace-stale-credential/messages | Swedish strings for Passkeys replacement page. |
| src/identity-server/messages/core/pt/authenticator/webauthn/replace-stale-credential/messages | Portuguese strings for WebAuthn replacement page. |
| src/identity-server/messages/core/pt/authenticator/passkeys/replace-stale-credential/messages | Portuguese strings for Passkeys replacement page. |
| src/identity-server/messages/core/pt-pt/authenticator/webauthn/replace-stale-credential/messages | Portuguese (PT-PT) strings for WebAuthn replacement page. |
| src/identity-server/messages/core/pt-pt/authenticator/passkeys/replace-stale-credential/messages | Portuguese (PT-PT) strings for Passkeys replacement page. |
| src/identity-server/messages/core/en/authenticator/webauthn/replace-stale-credential/messages | English strings for WebAuthn replacement page. |
| src/identity-server/messages/core/en/authenticator/passkeys/replace-stale-credential/messages | English strings for Passkeys replacement page. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # | ||
|
|
||
| view.description=Din nyckel är inte längre giltig eftersom din kontoinformation har ändrats. Du måste registrera en ny nyckel för att fortsätta. | ||
| view.button.register=Registrera fler enheter |
| # | ||
|
|
||
| view.description=Din nyckel är inte längre giltig eftersom din kontoinformation har ändrats. Du måste registrera en ny nyckel för att fortsätta. | ||
| view.button.register=Registrera fler enheter |
There was a problem hiding this comment.
I don't we should use "Enhet" or device for passkey. More fitting for Webauthn though.
There was a problem hiding this comment.
Suggestion: Registrera en ny nyckel ( or "ny passkey" if we want to go that route)
|
I asked Claude to have a look: I'll review the diff focusing on the message files for translations and naming issues. This is a one-shot review, so tasks aren't needed. Continuing the review. Now I have enough to give a complete review. Here are the issues I found, focused on the message/translation files: Issues FoundPatch 13 (
|
daniellindau
left a comment
There was a problem hiding this comment.
Made some suggestions on the swedish wording, but I believe it merits a quick discussion with @urre
| # For further information, please contact Curity AB. | ||
| # | ||
|
|
||
| view.description=Your new passkey has been registered successfully. Your old passkey is still stored in your browser or keychain but will no longer work on this site. To avoid being prompted to use it, remove it from your browser or device's passkey manager. |
| # For further information, please contact Curity AB. | ||
| # | ||
|
|
||
| view.description=Your new passkey has been registered successfully. Your old passkey is still stored in your browser or keychain but will no longer work on this site. To avoid being prompted to use it, remove it from your browser or device's passkey manager. |
| # For further information, please contact Curity AB. | ||
| # | ||
|
|
||
| view.description=Your new passkey has been registered successfully. Your old passkey is still stored in your browser or keychain but will no longer work on this site. To avoid being prompted to use it, remove it from your browser or device's passkey manager. |
| # For further information, please contact Curity AB. | ||
| # | ||
|
|
||
| view.description=Your new passkey has been registered successfully. Your old passkey is still stored in your browser or keychain but will no longer work on this site. To avoid being prompted to use it, remove it from your browser or device's passkey manager. |
| # For further information, please contact Curity AB. | ||
| # | ||
|
|
||
| view.description=Your new passkey has been registered successfully. Your old passkey is still stored in your browser or keychain but will no longer work on this site. To avoid being prompted to use it, remove it from your browser or device's passkey manager. |
| @@ -0,0 +1,15 @@ | |||
| # | |||
| # Copyright (C) 2024 Curity AB. All rights reserved. | |||
| @@ -0,0 +1,15 @@ | |||
| # | |||
| # Copyright (C) 2024 Curity AB. All rights reserved. | |||
| @@ -0,0 +1,15 @@ | |||
| # | |||
| # Copyright (C) 2024 Curity AB. All rights reserved. | |||
| @@ -0,0 +1,15 @@ | |||
| # | |||
| # Copyright (C) 2024 Curity AB. All rights reserved. | |||
| @@ -0,0 +1,15 @@ | |||
| # | |||
| # Copyright (C) 2024 Curity AB. All rights reserved. | |||
No description provided.