Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_assertion: Skip attStmt unless requested #99

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

robin-nitrokey
Copy link
Member

For makeCredential, a missing attestation format preference list means that we should use the default format (packed). For getAssertion, it means that we should skip the attestation statement entirely. Previously, we implemented the makeCredential algorithm for both cases. This caused an incompatibility with firefox because it fails on unexpected fields in the response (in this case, the attestation statement). This patch fixes this issue and applies the correct default for getAssertion requests.

Fixes: #98

@daringer
Copy link

daringer commented Oct 2, 2024

verified using nk3am + firefox 131 + webauthn.io

For makeCredential, a missing attestation format preference list
means that we should use the default format (packed).  For getAssertion,
it means that we should skip the attestation statement entirely.
Previously, we implemented the makeCredential algorithm for both cases.
This caused an incompatibility with firefox because it fails on
unexpected fields in the response (in this case, the attestation
statement).  This patch fixes this issue and applies the correct default
for getAssertion requests.

Fixes: #98
@robin-nitrokey robin-nitrokey merged commit b34fa47 into main Oct 8, 2024
3 checks passed
robin-nitrokey added a commit to Nitrokey/nitrokey-3-firmware that referenced this pull request Oct 8, 2024
This patch updates fido-authenticator to fix compatibility with Firefox
and also updates cbor-smol to 0.4.1.

See also:
- Nitrokey/fido-authenticator#99
robin-nitrokey added a commit to Nitrokey/nitrokey-3-firmware that referenced this pull request Oct 9, 2024
This patch updates fido-authenticator to fix compatibility with Firefox
and also updates cbor-smol to 0.4.1.

See also:
- Nitrokey/fido-authenticator#99
@robin-nitrokey robin-nitrokey deleted the get-assertion-att-stmt branch October 9, 2024 08:40
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.

getAssertion: Skip attStmt if attestationFormatsPreference is not set
2 participants