Skip to content

Cannot login with passkey #1315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
cst1412 opened this issue Jan 31, 2025 · 4 comments
Open
1 task done

Cannot login with passkey #1315

cst1412 opened this issue Jan 31, 2025 · 4 comments
Labels
app:password-manager bug Something isn't working

Comments

@cst1412
Copy link

cst1412 commented Jan 31, 2025

Steps To Reproduce

  1. Go to https://webauthn.io/ (Tested with Firefox and Safari)
  2. Click on Register
  3. Create passkey in Bitwarden
  4. Click on Authenticate

Expected Result

IOS shows passkey and is able to authenticate with it.

Actual Result

IOS does not show passkey and trying to choose Bitwarden and selecting it manually does not work.
Sometimes it detects that i have a passkey and then i click authenticate vault loads i login with face id vault closes nothing happens.
The bottom sheet is still open and the site reports an error.

Screenshots or Videos

Bottom sheet stuck

bitwarden_ios_passkey_bug.mp4

Not finding the passkey at all

bitwarden.not.working.MP4

Empty vault working perfectly

bitwarden.working-60fps.mp4

Additional Context

With an empty vault this works. There has to be something in my data that breaks the App.
Maybe i will try to debug the app myself later to give some more context.

i tested this with Firefox and safari same behavior

Build Version

2025.1.2 (1867))

What server are you connecting to?

US

Self-host Server Version

No response

Environment Details

Iphone 14 Plus and Ipad Air
IOS 18.3

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@cst1412 cst1412 added the bug Something isn't working label Jan 31, 2025
@cst1412
Copy link
Author

cst1412 commented Jan 31, 2025

Okay managed to track down the issue:
The app throws an error at: AutofillCredentialService.replaceAllIdentities
at.credentialsForAutoFill

Image

the error that the app loggs is: BitwardenSdk.BitwardenError.E(message: "Invalid symbol 91, offset 0.")

i looked at the sdk and my guess is that the error happens at Fido2CredentialAutofillView.from_cipher_view

i managed to track down the data that caused this error it looks like this:
(i anonymized some fields)

  "fido2Credentials": [
          {
            "credentialId": "*********",
            "keyType": "public-key",
            "keyAlgorithm": "ECDSA",
            "keyCurve": "P-256",
            "keyValue": "[error: cannot decrypt]",
            "rpId": "whatsapp.com",
            "userHandle": "[error: cannot decrypt]",
            "userName": "************",
            "counter": "0",
            "rpName": "whatsapp.com",
            "userDisplayName": "***********",
            "discoverable": "true",
            "creationDate": "2024-07-18T09:00:28.779Z"
          }

now if you look up what character 91 in ascii is this makes sense. ([)

The Sdk should be able to handle errors like this and not crash.
Maybe this issue now needs to be transferred to the sdk repository ?

But i can report that removing the passkey was possible and i can now login with passkeys again 👍

@jatin-bansal-21
Copy link

I am also facing the same issue and have raised it to customer support multiple times

@jatin-bansal-21
Copy link

Okay, so one of the passkeys was corrupt as suggested by @cst1412 . it had the value "keyValue": "[error: cannot decrypt]", and once deleted all of my passkeys are working fine now. Thanks a lot @cst1412 !!

@daniellbw
Copy link

Hi there,

I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thank you for the current information provided so far!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:password-manager bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants