authpass / biometric_storage

Flutter plugin to store data behind biometric authentication (ie. fingerprint)
https://pub.dev/packages/biometric_storage
MIT License
184 stars 107 forks source link

MacOS Password popup #65

Closed edeuss closed 2 years ago

edeuss commented 2 years ago

Is this required to have a password entered to save stuff to the keychain? flutter_secure_storage Doesn't cause this popup.

Screen Shot 2022-06-14 at 8 29 02 PM
hpoul commented 2 years ago

I don't get it.. thats the whole point of biometric storage.. to require user authentication.. either through fingerprint, face id.. or password.. if you don't want this, have you tried setting authenticationRequired to false? https://pub.dev/documentation/biometric_storage/latest/biometric_storage/StorageFileInitOptions-class.html

edeuss commented 2 years ago

@hpoul I have it set to false, and the prompt still pops up.

This is how I have it set up.

BiometricStorageFile _storage = await BiometricStorage().getStorage(
        'accessToken',
        options: StorageFileInitOptions(
          authenticationRequired: false,
    ),
);
hpoul commented 2 years ago

@edeuss is it possible that you changed authenticationRequired only after having written it once? it has to be set when writing the first time.. after that you would have to delete it and recreate it.. You can also change the name and try again

fwiw, I've just tried the example app and when writing/reading from the unauthenticated storage no password prompt is shown.

edeuss commented 2 years ago

@hpoul I tried changing the name and it's still causing the popup, with authenticationRequired set to false. Had a few people test it on their macs (my app) and the popup happens for them too.

hpoul commented 2 years ago

@edeuss can you checkout the repo and just run the example app if it works for you?

edeuss commented 2 years ago

@hpoul Tried that can't seem to get it to run,

error: No profiles for 'design.codeux.biometricStorageExample' were found: Xcode couldn't find any Mac App Development provisioning profiles matching 'design.codeux.biometricStorageExample'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
** BUILD FAILED **

I tried to change the bundle identifier but no luck. (I have my apple developer account selected as the signer)

hpoul commented 2 years ago

then just try to enable automatic signing 🤷‍♂️