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

fix(protocol): missing attachment field #114

Merged
merged 8 commits into from
Feb 14, 2023

Conversation

james-d-elliott
Copy link
Member

The authenticatorAttachment field was missing previously from the PublicKeyCredentialJSON. This fixes it and includes it as part of the Credential during registration. See typedef https://w3c.github.io/webauthn/#typedefdef-publickeycredentialjson for more information.

The transports JSON path as far as the Webauthn level 3 spec is concerned is response.transports i.e. within the response object with response.clientDataJSON and response.attestationObject. This fixes this location and allows for backwards temporary compatibility for anyone implementing the previous method. See the typedef https://w3c.github.io/webauthn/#typedefdef-publickeycredentialjson for more information.
The authenticatorAttachment field was missing previously from the PublicKeyCredentialJSON. This fixes it and includes it as part of the Credential during registration. See typedef https://w3c.github.io/webauthn/#typedefdef-publickeycredentialjson for more information.
@james-d-elliott james-d-elliott requested a review from a team as a code owner February 14, 2023 01:47
# Conflicts:
#	protocol/assertion.go
#	protocol/credential.go
#	protocol/credential_test.go
@james-d-elliott james-d-elliott merged commit 3386584 into master Feb 14, 2023
@james-d-elliott james-d-elliott deleted the fix-missing-attachment branch February 14, 2023 10:13
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.

None yet

1 participant