feat(fido): model backup eligibility and state flags#272
Open
AlfioEmanueleFresta wants to merge 1 commit into
Open
feat(fido): model backup eligibility and state flags#272AlfioEmanueleFresta wants to merge 1 commit into
AlfioEmanueleFresta wants to merge 1 commit into
Conversation
…ata flags Rename the RFU_2_1 and RFU_2_2 authenticator-data flag bits to BACKUP_ELIGIBILITY (0x08) and BACKUP_STATE (0x10) per WebAuthn L3 section 6.1, and expose them through read-only backup_eligible() and backed_up() accessors on AuthenticatorData. The flags are derived from the parsed flags byte and to_response_bytes() still returns the verbatim raw bytes, so signed output stays unchanged.
iinuwa
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Two authenticator-data flag bits carry backup eligibility and backup state but were modeled as reserved. This names them and adds read-only accessors derived from the parsed flags. The signed bytes are still returned verbatim, so signed output is unchanged.
Closes #255.