Skip to content

[PM-1575] Display Passkeys#2523

Merged
fedemkr merged 23 commits intomasterfrom
PM-1575-display-passkeys
Jul 26, 2023
Merged

[PM-1575] Display Passkeys#2523
fedemkr merged 23 commits intomasterfrom
PM-1575-display-passkeys

Conversation

@fedemkr
Copy link
Member

@fedemkr fedemkr commented May 16, 2023

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

Display Discoverable and Non-Discoverable Passkeys.

Code changes

  • bwi-font.ttf: Updated font with new icons for Passkeys
  • CipherViewCellViewModel.cs: Updated it to get the also the icon of a Fido2Key
  • BaseCipherViewModel.cs: Added CreationDate string built
  • CipherAddEditPage.xaml: Added Passkey section and non-discoverable passkey to login
  • CipherAddEditPageViewModel: Removed Fido2Key from Login when cloning and added bool to show/hide non-discoverable passkey if in clone mode.
  • CipherDetailsPage.xaml: Added Passkey section and non-discoverable passkey to login
  • CipherDetailsPage.xaml.cs: Removed Clone from the toolbar for Passkeys types. Moved Clone logic to ViewModel.
  • CipherDetailsPageViewModel.cs: Refactor a bit to use ILaunchableView to launch either a Login or a Passkey/Fido2Key. Added CloneCommand and moved clone logic here also adding when a cipher can be cloned, particularly on logins with non-discoverable passkey, the user needs to decide whether to clone it or not after warning them that the passkey won't be cloned.
  • GroupingsPageListItem.cs: Added Fido2Key name and icon
  • GroupingsPageViewModel.cs: Refactor a bit the section to add types items with count to be simpler and with less code. Also added Fido2Key to be taken into account when filtering by Login given that they should be displayed side by side.
  • SharePage.xaml, SharePage.xaml.cs, SharePageViewModel.cs : Changed to async command approach and changed the name to MoveCommand to be more specific.
  • IconGlyphExtensions.cs: Improved code
  • IconImageConverter.cs: Added Fido2Key logic and move things a little to be more reusable
  • CipherView.cs: Added Fido2Key. Also added ComparableName so we avoid type checking and it's more direct and in place. Additionally, added the ILaunchableView interface so that the caller doesn't need to know the inner types to get whether it can be launched or which is the launch uri.
  • ILaunchableView.cs: This is to mark views to be launchable and to decrease type checking.
  • CipherTypeExtensions.cs: This was created to improve readability on usage.
  • Others: Added Fido2Key new logic.

Screenshots

Discoverable Passkey View Item

Discoverable Passkey View Item dark

Discoverable Passkey Edit item

Discoverable Passkey Edit item dark

Non Discoverable Passkey  View Item

Non Discoverable Passkey  View Item dark

Non Discoverable Passkey Clone Warning

Non Discoverable Passkey Clone Warning dark

Non Discoverable Passkey  Edit Item

Non Discoverable Passkey  Edit Item dark

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

@fedemkr fedemkr marked this pull request as ready for review May 24, 2023 18:20
@fedemkr fedemkr requested review from a team May 24, 2023 18:20
mpbw2
mpbw2 previously approved these changes May 25, 2023
mpbw2
mpbw2 previously approved these changes Jun 13, 2023
…hen moving a cipher to an org"

This reverts commit 78e6353.
# Conflicts:
#	src/App/Resources/AppResources.Designer.cs
@bitwarden-bot
Copy link

bitwarden-bot commented Jul 20, 2023

Logo
Checkmarx One – Scan Summary & Details5404edb7-3b27-433a-aa5f-a50952f47c04

New Issues

Severity Issue Source File / Package Checkmarx Insight
LOW Heap_Inspection /src/Core/BitwardenIcons.cs: 117 Attack Vector
LOW Use_Of_Hardcoded_Password /src/Core/BitwardenIcons.cs: 117 Attack Vector

… to an organization (#2594)

* PM-2378 Display error toast if there is a duplicate passkey when moving a cipher to an org

* PM-3097 Fix issue when moving cipher with passkey to an org where the uniqueness should be taken into consideration on different passkeys types and also the Username (#2632)

* PM-3096 Fix non-discoverable passkey to be taken into account when encrypting a cipher which was causing the passkey to be removed when moving to an org (#2637)
@fedemkr fedemkr requested a review from mpbw2 July 24, 2023 16:05
@fedemkr fedemkr removed the needs-qa label Jul 26, 2023
@fedemkr fedemkr merged commit ea81acb into master Jul 26, 2023
@fedemkr fedemkr deleted the PM-1575-display-passkeys branch July 26, 2023 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants