* PM-7365 Fix UV not being performed on Fido2 credential creation on Android
* PM-7365 Fix PublicKeyCredentialCreationOptions mapping from json on AuthenticatorSelection so mainly userVerification has correct value
* [PM-7257] feat: add ability to override `clientDataHash`
* [PM-7257] feat: add support for clientDataHash and extensions
* PM-7257 Updated the origin to be the correct one and not the android one to be passed to the Fido2Client
---------
Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
* PM-7385 Fixed for allowing switching accounts while creating a passkey on Android.
This fixes also include scenarios where we need to unlock the vault after switching
Also fixed the issue where tapping on cipher won't do anything after switching.
* PM-7385 ensure the Options.Fido2CredentialAction and FromFido2Framework are reset when the Credential flow is started to avoid erratic behaviors when switching accounts, app is in background or other edge case scenarios.
These properties where replaced by calls to _fido2MakeCredentialConfirmationUserInterface.IsConfirmingNewCredential instead.
* Minor changes and added comments
* [PM-7385] Implemented several changes suggested in PR for better/cleaner code.
* PM-7385 Added several minor code improvemments.
* PM-7369 Show passkey icon on android when the item has a Fido2 credential
* PM-7369 alternative way to show passkey icon only in scenarios where we are trying to create a passkey
* PM-7369 moved logic to show passkey icon to CipherItemViewModel
* Update src/Core/Utilities/IconGlyphConverter.cs
Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
---------
Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
* Initial WIP implementation for the app unlock flow when called from Passkey. Still needs code organization and to be finished.
Also added a new Window workaround in App.xaml.cs to allow CredentialProviderSelectionActivity to launch separately.
* Added missing IDeviceActionService.cs implementation for iOS to build.
* Added Async to ReturnToPasskeyAfterUnlockMethod
Changed i18n to AppResource.Unlock
Removed unecessary cast
* minor code change (added comment)
* Added back the case for loading a specific Window for CredentialProviverSelectionActivity
* Added fix for Intent not passing properly to CredentialProviderSelectionActivity
Added Activity cancellation on error during execution of ReturnToPasskeyAfterUnlockAsync()
* Added WIP code for Android passkey implementation. Currently returns a mostly complete response that is missing the ClientDataJson
* Added WIP code for creating passkeys on Android. Still missing unlock flow and response of passkey creation is still not correct.
Removed unused throw NotImplementedException from Fido2ClientService
Added CredentialCreationActivity for passkey creation
Added alternative code on CredentialProviderSelectionActivity to try to debug issue with response not being valid
* Started working on logic to adding unlock flow. It's already handling the unlock but not passing the PendingIntentHandler info for CredentialCreation to CredentialCreationActivity
* Changed "cross-platform" to "platform"
* Created CredentialHelpers.cs class to share code used for Populating Passkeys in Android.
* Added Passkey Credential Creation shared code to CredentialHelpers.
Unlock flow for Passkey creation should now be working also.
* Updated code for checking if the CredentialProviderService has been enabled by the user or not. Still WIP, somes notes in code due to Credential API not being complete.
Also changed the disable code to open the Credential Settings.
* Replaced the AndroidX.Credential helpers with custom JSON creation to fix the response for Credential Creation
* minor code cleanup on CredentialProviderSelectionActivity
* added todo comment
* Feature/maui migraton passkeys android unlock fix andreas (#3077)
* fix: bitwarden providing too many/wrong credentials
* feat: use authenticator instead of client
---------
Co-authored-by: Dinis Vieira <dinisvieira@outlook.com>
* Removed / commented some older Passkey Proof of concept code.
Auth and creation of passkey should still work both when device is unlocked (and not)
Added some initial code in AutofillCiphersPageViewModel and CipherAddEditPageViewModel for handling Passkey creation
* PM-6829 Implemented Fido2...UserInterfaces on Android and necessary logic to get/make a credential with those
* Added IFido2MediatorService registrations
Inverted two IsLockedAsync checks
* Added navigation to autofillCipher when creating passkey
* Updated LockPage to avoid multiple executions of SubmitAsync
* Added new flow for creating new passkey on Android with the Cipher page for editing details
* Changed the Credential Provider Switch to an external link control
* Added i18n for Passkey Settings
* Cleanup of older Credentials code used for Android Fido2 POC.
Removed CredentialCreationActivity as it's no longer needed
* fixed merge conflict/error and added error check to Fido2 navigation in App.xaml.cs
* Removed from MainActivity casts from DeviceActionService
Changed CredentialProviderServiceActivity to handle Fido errors and exceptions gracefully and show the user an error. Still not with the correct messages.
* Added some error messages. Still need to confirm the Text Resource to use and change.
* Changed some messages to use AppResources
* Cleanup of Credential Android code and added exception result if the clientCreateCredentialResult is null
* Updated Add new item button text when creating a new passkey
* Added AccountSwitchedException for the Fido Mediator Service
* Removed TODO that is no longer needed
* Updated some todo messages in Android AutofillHandler
* When authenticating a passkey on Android the "showDialog" callback can be called and there's no MainPage available so it was changed for that specific scenario to use _deviceActionService instead of MainPage.
---------
Co-authored-by: Andreas Coroiu <andreas.coroiu@gmail.com>
Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
* PM-6655 Fixed fallback value on passkeys to take into account CipherView.Name. Also removed non-discoverable passkey filter on adding credentials to the ASStore and also added the fallback consideration on the passkeys list iOS extension
* PM-6655 Restored non-discoverable filter on credentials set for ASStore on this PR
* PM-6798 Force state update when opening the Autofill extension
* PM-6798 Fix InitAppIfNeededAsync to be awaited and also ignored Fido2AuthenticatorException from logging them to AppCenter since they don't add much information and we're logging in other places what we need