Skip to content

feat(fido): model backup eligibility and state flags#272

Open
AlfioEmanueleFresta wants to merge 1 commit into
masterfrom
feat/backup-eligibility-state-flags
Open

feat(fido): model backup eligibility and state flags#272
AlfioEmanueleFresta wants to merge 1 commit into
masterfrom
feat/backup-eligibility-state-flags

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

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.

…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.
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 15, 2026 21:12
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as draft June 15, 2026 21:33
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 15, 2026 21:44
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.

feat(fido): model Backup Eligibility and Backup State auth-data flags

2 participants