Skip to content

Add support for attestationFormats in creation options - #514

Merged
santiagorodriguez96 merged 3 commits into
masterfrom
sr--add-attestation-formats-option
Oct 22, 2026
Merged

santiagorodriguez96 merged 3 commits into
masterfrom
sr--add-attestation-formats-option

Conversation

@santiagorodriguez96

@santiagorodriguez96 santiagorodriguez96 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

WebAuthn L3 added attestationFormats to PublicKeyCredentialCreationOptions: an advisory list of attestation statement format identifiers, ordered most to least preferred.

The gem has no way to set it:

WebAuthn::Credential.options_for_create(user: { id: "abc", name: "user" }, attestation_formats: ["packed"])
# => ArgumentError: unknown keyword: :attestation_formats

Details

This PR add support for setting the attestation_formats to WebAuthn::PublicKeyCredential::CreationOptions. Also, its makes it so that its value is included when serializing the options into JSON.

@santiagorodriguez96
santiagorodriguez96 merged commit e9155b4 into master Oct 22, 2026
96 of 97 checks passed
@santiagorodriguez96
santiagorodriguez96 deleted the sr--add-attestation-formats-option branch October 22, 2026 20:03
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