smstuebe / xamarin-fingerprint

Xamarin and MvvMCross plugin for authenticate a user via fingerprint sensor
Microsoft Public License
490 stars 115 forks source link

Enter code Error: Fallback authentication mechanism selected. #60

Closed alvarocasado closed 7 years ago

alvarocasado commented 7 years ago

On IOs, trying to enter the authentication password after failing the fingerprint authentication, returns the following error: Plugin.Fingerprint.Abstractions.FingerprintAuthenticationResultStatus.FallbackRequested : Fallback authentication mechanism selected.

This can be seen in the SMS.Fingerprint.Sample.iOS project.

Steps to reproduce

  1. Launch SMS.Fingerprint.Sample.iOS proyect

  2. Try to authenticate with wrong fingerprint. Enter code message appears.

  3. Click on "Enter code".

Expected behavior

Numeric keyboard to enter the code.

Actual behavior

Not loged. The option to enter the code does not appear

Crashlog

Configuration

Version of the Plugin: 1.4.3 Platform: iOS 10.2 Device: i Phone 5s

This issue is solved changing the following line (31) of the project Plugin.Fingerprint.iOS, class FingerprintImplementation, method NativeAuthenticateAsync:

resTuple = await _context.EvaluatePolicyAsync(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, authRequestConfig.Reason);

by

resTuple = await _context.EvaluatePolicyAsync(LAPolicy.DeviceOwnerAuthentication, authRequestConfig.Reason);

smsissuechecker commented 7 years ago

Hi @alvarocasado,

I'm the friendly issue checker. Thanks for using the issue template :star2: I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.

smstuebe commented 7 years ago

Simply changing it, can cause unwanted behavior on existing apps. I might make it configurable.

alvarocasado commented 7 years ago

Yep, making it configurable is better than hardcode it. Cheers.

On 27/04/2017 18:27, "Sven-Michael Stübe" notifications@github.com wrote:

Simply changing it, can cause unwanted behavior on existing apps. I might make it configurable.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/smstuebe/xamarin-fingerprint/issues/60#issuecomment-297767737, or mute the thread https://github.com/notifications/unsubscribe-auth/ARDHW9nKvZ9Dx6ZbQOR1o86Juo0Syramks5r0MHzgaJpZM4NKbmf .

AndriyMahera commented 7 years ago

Hi @smstuebe , Do you work on resolving this issue? I'd want to know because this is important for my application. Should I wait for solution soon or make some workaround by myself? Have a nice day.

smstuebe commented 7 years ago

If Quake Champions allows me to do something different, I'll have a look at it at the weekend.

AndriyMahera commented 7 years ago

Ok, thanks

smstuebe commented 7 years ago

Included in 1.4.4. Feedback?

AndriyMahera commented 7 years ago

@smstuebe ,everything works good, very grateful.