-
Notifications
You must be signed in to change notification settings - Fork 2
Add a user-defined passkey name to the passkey data #566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Kelvin Chappell <1722550+kelvin-chappell@users.noreply.github.com>
…mission Co-authored-by: Kelvin Chappell <1722550+kelvin-chappell@users.noreply.github.com>
Co-authored-by: Kelvin Chappell <1722550+kelvin-chappell@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds the ability for users to assign a custom name to their passkeys during registration and uses that name to list passkeys on the account page.
- Introduces a new modal prompt (using Materialize CSS) to retrieve the passkey name from the user.
- Wraps registration and authentication flows in try-catch blocks for improved error handling.
- Refactors form submission by dynamically creating a form with the necessary fields, including the passkey name.
Files not reviewed (8)
- app/aws/PasskeyChallengeDB.scala: Language not supported
- app/aws/PasskeyDB.scala: Language not supported
- app/controllers/PasskeyAuthFilter.scala: Language not supported
- app/controllers/PasskeyController.scala: Language not supported
- app/logic/Passkey.scala: Language not supported
- app/models/models.scala: Language not supported
- app/views/userAccount.scala.html: Language not supported
- test/logic/PasskeyTest.scala: Language not supported
|
||
// Clear error when typing | ||
input.addEventListener('input', () => { | ||
if (input.value.trim()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs more input validation - eg restrict to alphanumeric etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and works as expected. We can add the input validation in a separate PR.
What is the purpose of this change?
This adds a mechanism to the frontend to set a passkey name during the registration process. The name is added to the data stored in the Dynamo passkeys table. This change also uses the names to list passkeys on the user account page.
What is the value of this change and how do we measure success?
Users are allowed up to two passkeys so this change enables them to identify the passkeys they have already registered. In the future it will allow them to choose which one to delete if they want to.
Co-authored-by: @tjsilver