mozilla / mozilla/authenticator-rs
[Bug] Registration fails when device is full and discoverable credentials is only preferred.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 316
- Forks
- 82
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 1
Description
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
- use hardware with limited storage for discoverable credentials (for example yubikey 5 series)
- Fill the device with dummy credentials
- Try to register new credential using the library, with discoverable/resident credential setting set as "preferred"
- Observe result
Expected result
Library should fall back into registering non-discoverable credential
Actual result
Registration fails.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the registration failure with a full YubiKey 5-series device and discoverable credentials set to preferred. Trace the registration path for this setting and verify that a failure to create a discoverable credential falls back to a non-discoverable credential, then repeat the reproduction steps to confirm registration succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- authentication, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100