Skip to content

Make PinNotSet errors an interactive flow#181

Open
msirringhaus wants to merge 2 commits intolinux-credentials:masterfrom
msirringhaus:pinnotset
Open

Make PinNotSet errors an interactive flow#181
msirringhaus wants to merge 2 commits intolinux-credentials:masterfrom
msirringhaus:pinnotset

Conversation

@msirringhaus
Copy link
Collaborator

Add interactive possibility to 'fix' PINNotSet errors, same as PINRequired, to help with linux-credentials/credentialsd#135

  • For testing, the webauthn_{hid,nfc} examples now have a question whether it should use UV preferred or required, to be able to test both (PINNotSet obviously only is returned if UV is required)
  • Instead of erroring out early as we did before, the new algorithm (hopefully) allows for devices that can handle this internally to continue. Sadly, I don't have such a device to test this.
  • Split the PinManagement-trait into and internal and public API, which is a bit hacky.
  • Reused change_pin() from PinManagement, which can both change or set a PIN. Not super pretty, but should do in this case.

This PR should probably stay open until I managed to fully integrated it into the credentialsd PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants