Support FIDO2 authentication with devices that don’t have a PIN code #655
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for FIDO2 authentication with devices that don’t have a PIN code set.
This depends on a newer release of the
LibFido2Swift
library.At the time of writingLibFido2Swift
only supports pin-less assertation on the main branch. As such this PR will have to wait until @kinoroy creates a new release on his side.The updated version has now been released and the PR has been updated to reflect this.Some further updates were made on the
LibFido2Swift
library to make PIN-less assertation easier. This PR was updated in turn to improve the UX of the PIN-less authentication flow.The flow now is that when a user tries to log in, if the request needs 2FA - where the second factor is a security key we check:
.securityKeyTouchToConfirm
sheet..twoFactor
sheet is displayed like before..twoFactor
sheet.The button for submitting without a pin was added to be inline with the other buttons on the PIN screen.
Ohh and I addressed a couple of issue that were being caught by the "Run Time Issue" breakpoint. Namely assigning the
authError
outside of the main thread.