Skip to content

Passkey throws error using CTAP2 in offline environment #1211

Closed
@holow29

Description

@holow29

Steps To Reproduce

  1. Have a functional passkey synced to vault for Github.com
  2. Enable airplane mode on iPhone (WiFi/cellular off); ensure bluetooth on
  3. On computer in browser (e.g. Chrome) visit github.com/login and click "Sign in with a passkey"
  4. Choose CTAP2 option (e.g. "Use a phone or tablet") to generate pairing QR code
  5. Use iOS camera app to scan QR code and attempt to pair

Expected Result

Successful prompt for passkey selection

Actual Result

"The operation could not be completed. Please try again."

Screenshots or Videos

Untitled2.mov

Additional Context

Once out of airplane mode, it works. There is complication of #1186 which affects this later in the flow. Likely any RP, not just Github, but easily reproducible there.

Possible that this is an Apple issue. When not in airplane mode but with cellular data off & wifi off, stuck on "Connecting..." iOS pane underneath which it says, "Make sure both devices are connected to the internet and have Bluetooth turned on." AFAIK CTAP2 should not require internet access for authenticator. (And oddly this is different behavior than airplane mode as described above.)

Build Version

1740

What server are you connecting to?

Self-host

Self-host Server Version

2024.12.1

Environment Details

iPhone 14 Pro
iOS 18.2

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions