Skip to content

[Bug] Registration fails when device is full and discoverable credentials is only preferred. #335

Description

@gbdlin

Issue description

Right now, the registration process fails when the device cannot create any more discoverable credentials, because is full, when discoverable credential is set as "preferred" and not as "required. The expected outcome should be to fall back to non-discoverable credential as if the device wouldn't support discoverable credentials at all.

Steps to reproduce

  1. use hardware with limited storage for discoverable credentials (for example yubikey 5 series)
  2. Fill the device with dummy credentials
  3. Try to register new credential using the library, with discoverable/resident credential setting set as "preferred"
  4. Observe result

Expected result

Library should fall back into registering non-discoverable credential

Actual result

Registration fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions