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

Explicitly pass WebAuthn credential properties #6975

Merged
merged 2 commits into from Mar 5, 2024

Conversation

scotttrinh
Copy link
Contributor

Not sure if this was working before due to some idiosyncratic behavior of Bitwarden's passkey implementation, but when I tried this with the built-in Chrome passkey functionality, I was getting errors about missing properties.

@scotttrinh scotttrinh changed the title Explicitly pass expected WebAuthn credential properties Explicitly pass WebAuthn credential properties Mar 4, 2024
@scotttrinh scotttrinh requested a review from jaclarke March 5, 2024 14:03
...props.assertion,
type: props.assertion.type,
id: props.assertion.id,
authenticatorAttachments: props.assertion.authenticatorAttachment,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be authenticatorAttachment (no 's')?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good eye. It's optional so I guess it worked in my testing just accidentally 🙈 . Getting pretty close to creating a mock authenticator so we can actually test these end-to-end...

@scotttrinh scotttrinh merged commit 0200a55 into master Mar 5, 2024
23 checks passed
@scotttrinh scotttrinh deleted the fix-webauthn-scripts branch March 5, 2024 14:37
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

3 participants