corbado / flutter-passkeys

Easily provide passkey authentication based on FIDO2 / WebAuthn for Flutter apps (iOS & Android) via a dedicated Flutter package
https://www.corbado.com/passkeys/flutter
BSD 3-Clause "New" or "Revised" License
63 stars 29 forks source link

Android 12 passkey authentication issue help #38

Closed udaychandra closed 11 months ago

udaychandra commented 11 months ago

Hello,

Our flutter android app registration flow with passkeys is working fine but the login/authenticate flow is not working. Not sure how to debug this exception: PlatformException(android-no-credential, During begin sign in, failure response from one tap: 16: Cannot find a matching credential., , null)

Not sure why android can't find a matching credential when the registration was successful.

All configurations outlined here https://developer.android.com/training/sign-in/passkeys were followed. Not sure, what is missing. If it helps, the registration UI looks like this and the flow works fine.

IMG_9621

When we logout and log back in using the authenticate flow, the error above is thrown.

Environment Details Flutter 3.16.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision db7ef5bf9f (2 weeks ago) • 2023-11-15 11:25:44 -0800 Engine • revision 74d16627b9 Tools • Dart 3.2.0 • DevTools 2.28.2

Real Pixel 3 XL, Android version 12

Our flutter app is fully configured to support passkeys. Support for digital asset links has been added.

And thank you providing this excellent package to the community!

udaychandra commented 11 months ago

Closing this request. The problem was on out relying party implementation and differences b/w Apple and Android handling of authenticatorSelection.

twilightfromnott commented 8 months ago

Hello, I understand this might inconvenience you, but could you please assist me? I'm currently encountering the same issue. I noticed you mentioned that this error stems from the relying party implementation. Could you give me with more details? @udaychandra

Thank you sincerely.

twilightfromnott commented 8 months ago
Screenshot 2024-03-15 at 15 04 12

Here is my authenticatorSelection being configured