-
Notifications
You must be signed in to change notification settings - Fork 36
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
Update webauthn to version 2.0 #2716
Conversation
d14ac64
to
352767a
Compare
Code Climate has analyzed commit 71937c1 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 82.2% (0.0% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not particularly familiar with webauthn and 2FA, but hopefully, I can still add some value nonetheless!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice 😌
@deen13 I did some testing with your newly introduced test suite and it seems nice to have. However, I have no real experience with ts testing and I just wanted to ask if you think that this testing framework will work in general in case we want to extend our testing scope to TS/JS as well? :) |
Hey @ulliholtgrave, yes vitest is a general purpose testing framework. It offers out-of-the-box support for typescript, esm and jsx which makes it the preferred testing solution for me. I hope that answers your question. 🙈 |
@deen13 In the issue grooming we talked about splitting up this pr into only upgrading webauthn and another one for the typescript tests. If you are also okay with that, could you create a new pr with only the test changes? |
9571bb8
to
59ce2b2
Compare
Perfect :) @david-venhoff Can you put your changes into one commit and this it good to go :) |
@david-venhoff I've created #2810 from your branch :) |
This implements Option 2 of the webauthn migration notes (https://github.com/duo-labs/py_webauthn/releases/tag/v2.0.0) by adding a new field `webauthn_id` to the user model that is automatically generated using a helper method by webauthn.
71dbf35
to
71937c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm :) 👍
Short description
That version contains some breaking changes, and this pr changes the affected code.
Since I haven't worked much with 2fa yet, it probably makes sense that someone with more experience reviews this.
This pr follows the upgrade guidelines from webauthn: https://github.com/duo-labs/py_webauthn/releases/tag/v2.0.0
Proposed changes
webauthn_id
to the user model that is automatically generated by webauthn and use it instead of the numerical user idSide effects
/
Resolved issues
Fixes: #2614
Pull Request Review Guidelines