Тёмный
No video :(

Flutter Local Authentication | Fingerprint and FaceID | Dart Packages 

Fun with Flutter
Подписаться 32 тыс.
Просмотров 36 тыс.
50% 1

In this video we use the Local Authentication package to demonstrate how you can easily introduce Fingerprint and FaceID local authentication for your Flutter application.
NOTE: At the end of the video we talk about the security aspect of using this package for local authentication. What this package does, is it provides a true or false state to indicate if a user has passed or failed biometric authentication. This package can not be used to securely store data, or authenticate to a remote server.
Resources:
pub.dartlang.org/packages/loc...
github.com/flutter/plugins/tr...

Опубликовано:

 

3 фев 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@FunwithFlutter
@FunwithFlutter 5 лет назад
In the video I encounter a build error at 3:07 and end up reverting to a previous version of the local_auth package. This is an issue with the Android support libraries used for backwards compatibility. For a detailed explanation and how to fix please see the following: flutter.io/docs/development/packages-and-plugins/androidx-compatibility
@androidmediocre2104
@androidmediocre2104 5 лет назад
Nice tuts. Looking for more videos helped me a lot. Thanks.
@arcticspacefox864
@arcticspacefox864 5 лет назад
Amazing videos just found your channel 😁
@jorgerivadeneiracevallos2701
@jorgerivadeneiracevallos2701 4 года назад
Excelente...! Gracias
@zahraamuhammad4359
@zahraamuhammad4359 4 года назад
YOU ARE GREAT!
@naveenrenati
@naveenrenati 4 года назад
i'm not getting dialog on android devices having on screen fingerprint. Do you have any solution for that?
@gofudgeyourselves9024
@gofudgeyourselves9024 5 лет назад
Nice
@tejasbirsingh8503
@tejasbirsingh8503 5 лет назад
after authenticating how can we link the next page ?
@manoharanm5912
@manoharanm5912 4 года назад
Fingerprint dialogue can't open in android device,i got Exception error.can you solve it???
@MOULIEC109
@MOULIEC109 4 года назад
Hai sir, can I have a code as to turn on and off when app is closed as phone pe and watsapp have.
@lamiasall4975
@lamiasall4975 4 года назад
i really love your accent.
@FunwithFlutter
@FunwithFlutter 4 года назад
Why thank you :)
@RynoKotze
@RynoKotze 4 года назад
south africa?
@hamzasabri5610
@hamzasabri5610 4 года назад
thank you for the video really helpfull BUT I did exactly the same as you but ended up with this error when I push the last button PlatformException(no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null)
@Zegger
@Zegger 2 года назад
2 years ago I'm here to tell you had to change your android manifest and main activity files to allow the app to use the fingerprint scanning
@hamzasabri5610
@hamzasabri5610 2 года назад
@@Zegger Lol, I was using Flutter two years ago Wow it's been a while man
@MOULIEC109
@MOULIEC109 4 года назад
Sir please make the full screen only showing fingerprint scanner and app details
@frameshft5865
@frameshft5865 5 лет назад
Great video! Could you please link to the secure auth package? A video on that package would also be great, thanks
@FunwithFlutter
@FunwithFlutter 5 лет назад
I quickly looked at the package (pub.dartlang.org/packages/flutter_secure_storage) and it seems that it only makes use of the keystore (Android) and keychain (iOS) to: "store cryptographic keys in a container to make it more difficult to extract from the device" - end quote. Don't think this package supports the capability to access the encrypted data with fingerprint/touchID. I'll try my best to explain (Also take what I'm saying with a grain of salt - security is constantly changing and some of this might be outdated, also I get mixed up with what Android does and what iOS does when it comes to encryption). On Android and iOS you can respectively make use of the keystore and keychain to store small portions of data and ensure only your application has the privilege to retrieve it - but "technically" if you root/jailbreak the device you can retrieve these objects, as you would have full privilege. Both Android and iOS further support the capability to only make the store/chain accessible once a user successfully passes fingerprint or touchID auth. Meaning that the data is only ever decrypted if the user passes biometric auth. Newer devices make use of something called a Secure Enclave (a separate chip, or mini computer), which is isolated from the rest of the device. As far as I have it, biometric auth and the relevant encryption/decryption magic happens in that isolated chip. Meaning that a compromised (or rooted) device cannot tamper with data protected by fingerprint/touchID - because a compromised device is still isolated from the Secure Enclave. On android you can protect data with auth by setting setUserAuthenticationRequired(true) when you generate an encryption key - see medium.com/overmorrow/authentication-sucks-bad-security-too-345ed20463d4 On iOS you can protect keychain items with kSecAccessControlTouchIDCurrentSet or kSecAccessControlTouchIDAny - see github.com/sensepost/objection/wiki/Understanding-the-TouchID-Bypass
@frameshft5865
@frameshft5865 5 лет назад
@@FunwithFlutter Thank you for such an amazing response. Will try dig into it more 👍
@aj1274
@aj1274 3 года назад
@@frameshft5865 did you find anything useful?
@flutter4525
@flutter4525 2 года назад
Please help! getting error - Type mismatch inferred type is MainActivity but FlutterActivity! was expected - getting this error while chnaging FlutterActivity to FlutterFragmentActivity for local authentication in flutter
@pubgmobilegaming9045
@pubgmobilegaming9045 5 лет назад
Can you make a video how to build sign up system in flutter? Thanks
@FunwithFlutter
@FunwithFlutter 5 лет назад
Hey, I'll be doing something like that at a later stage. I'll be covering more technical videos as the channel matures, so stick around. I'm also waiting for a decent Flutter package to come along that will help with secure storage via biometrics.
@zeffryreynando4084
@zeffryreynando4084 4 года назад
It's possible detect if user touch fingerprint sensor without open dialog ?
@FunwithFlutter
@FunwithFlutter 4 года назад
I don't believe so. You need to make use of the built-in fingerprint API for Android and iOS. You as the developer have minimum control, for security reasons
@ngoclichtran4876
@ngoclichtran4876 5 лет назад
can I customize UI of dialog ?
@FunwithFlutter
@FunwithFlutter 5 лет назад
Not from Dart code (maybe they'll add more features over time). This package is only invoking the relevant Android and iOS code, where the dialog is rendered. You can set a couple of extra text fields with the IOSAuthMessages and AndroidAuthMessages properties in the authenticateWithBiometrics call, see github.com/flutter/plugins/tree/master/packages/local_auth I have more experience with Android, so I can point you to the file where they customize the UI for the fingerprint dialog -> github.com/flutter/plugins/blob/master/packages/local_auth/android/src/main/res/layout/scan_fp.xml Not sure if iOS is more restrictive in the customization department. That all said there are certain style guides that developers are suggested to adhere to, and this fingerprint layout follows that. For Android P they've recently changed some things for Fingerprint Authentication, including the layout, so take a look. I suspect in the future this package will be updated to closer resemble that (for Android) -> medium.com/exploring-android/exploring-android-p-fingerprint-dialog-fa672ae62c6f
@ngoclichtran4876
@ngoclichtran4876 5 лет назад
@@FunwithFlutter have you tried on Iphone simulator?
@FunwithFlutter
@FunwithFlutter 5 лет назад
@@ngoclichtran4876 tried running this package on iPhone or tried to customize the UI dialog? To both of those, no :) There's a video that released today that goes through the same steps I did, while also testing on iPhone - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-w0-UB7rx8TA.html He also touches on extra changes you need to add to the Android Gradle file - which might be why I had issues with the latest version of the package.
@NairaChe
@NairaChe 2 года назад
Ok I'll let you
@jahangagan5396
@jahangagan5396 5 лет назад
what if the fingerprint is entered wrong 5 to 6 times??
@FunwithFlutter
@FunwithFlutter 5 лет назад
I would guess that it would default to the OS timeout. For Android that might be 30 seconds before you can try again. That or it would fall back to the device's passcode/password. Try it out and let us know
@jahangagan5396
@jahangagan5396 5 лет назад
@@FunwithFlutter i had tried but not asking for passcode in IOS and in android it crashes the application
@FunwithFlutter
@FunwithFlutter 5 лет назад
Sorry for the late reply. If you're still struggling I suggest you open a issue on GitHub/pub for the package. If you believe it to be an error on their side. Or paste your code on git and share the link, if I have time I'll take a look!
@Frostzy2688
@Frostzy2688 4 года назад
can you please link your code?
@FunwithFlutter
@FunwithFlutter 4 года назад
I'd recommend taking a look at the examples they give for the package.
Далее
Flutter Sequence Animations | Dart Packages
10:28
Просмотров 7 тыс.
In App Purchases in Flutter
10:54
Просмотров 137 тыс.
Top 12 Flutter Tips & Tricks
9:32
Просмотров 267 тыс.
Complex Animations in Flutter using Rive | Flare
15:44
Просмотров 224 тыс.
Using Firestore as a backend to your Flutter app
11:42
Просмотров 524 тыс.