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

Rename 'extensions' to 'clientExtensionResults' for deserialization #474

Conversation

jonashendrickx
Copy link
Contributor

@jonashendrickx jonashendrickx commented Dec 21, 2023

We are currently using 'extensions' instead of 'clientExtensionResults', this requires us to map the property from the PublicKeyCredential object in the browser, or Google FIDO2 API.

The demo applications have been left to use the original 'extensions' property for the registration, to demonstrate the change is backwards compatible.

I first renamed the property, and ensured the project was building and all references were correctly pointing to the new property. Then added the obsolete property back. There shouldn't be any leaks.

Copy link
Collaborator

@abergs abergs left a comment

Choose a reason for hiding this comment

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

LGTM. Leaving some room for @aseigler to comment but will merge later if there are not comments.

@shubhamji88
Copy link

We found this issue while using the Google android FIDO2 API. Currently, we have fixed this issue here by just renaming the "clientExtensionResults" to "extensions" and then sending to backend.

@abergs
Copy link
Collaborator

abergs commented Jan 3, 2024

@jonashendrickx This PR contains conflicts that stops it from being merged

@codecov-commenter
Copy link

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (d847702) 74.30% compared to head (8a2e824) 74.25%.

Files Patch % Lines
Src/Fido2/AuthenticatorAssertionResponse.cs 0.00% 1 Missing and 2 partials ⚠️
.../Fido2.Models/AuthenticatorAssertionRawResponse.cs 33.33% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #474      +/-   ##
==========================================
- Coverage   74.30%   74.25%   -0.06%     
==========================================
  Files         100      100              
  Lines        2705     2707       +2     
  Branches      444      444              
==========================================
  Hits         2010     2010              
- Misses        591      593       +2     
  Partials      104      104              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abergs abergs merged commit 31a4f94 into passwordless-lib:master Jan 4, 2024
11 checks passed
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

4 participants