-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Fix U2F registration and signing by replacing jQuery requests by fetch #11311
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
Conversation
Signed-off-by: Jonas Franz <[email protected]>
@jonasfranz can we refactor this by moving the U2F related code into web_src/js/features/webauth.js or is ths to mouch for this bugfix? |
👍 to moving it to a separate file if possible. If we expect this to work in IE11 we should include a fetch polyfill. Just install via |
@6543 I'm currently working on a rewrite to support WebAuthn. Do you think it's worth it to rewrite this now? You can have a look on the new implementation here: https://github.com/go-gitea/gitea/compare/master...jonasfranz:feature/webauthn?expand=1 I saw that @e3b0c442 already started working on webauthn while I'm writing this comment 😂 . |
Fix linting Signed-off-by: Jonas Franz <[email protected]>
JS looking good. I wonder if we can switch the vendored |
I have, and I'm hoping to get back to that in about 6 weeks when my classes are over for the summer, that said, if you're in a position to run with it go right ahead, won't hurt my feelings. |
@silverwind the npm version is not compatible with the current implementation. I would also love to use the npm version instead. But that might not be worth the effort since it will be replaced by webauthn in some point in time anyway. |
I wonder why |
@silverwind package-lock.json didn't change since |
Right, I see |
fix do not work for me :( |
@6543 can you give me more details? Are you getting an error message for example in the browser console? |
System: linux 5.6.8; 76.0 (64-bit) |
same on google chrome (Version 81.0.4044.138 (Official Build) (64-bit)) |
@6543 are you running on a localhost? Is it possible that you have to have ssl set-up? |
Co-authored-by: 6543 <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #11311 +/- ##
========================================
Coverage 43.82% 43.82%
========================================
Files 607 613 +6
Lines 86919 87229 +310
========================================
+ Hits 38094 38231 +137
- Misses 44117 44276 +159
- Partials 4708 4722 +14
Continue to review full report at Codecov.
|
with self signed cert: no change :( |
@6543 Make sure you type anything in nickname field, empty one is not accepted and returns
We should consider catching 409 and displaying friendly message to user, as well as making field required. |
@CirnoT if it would be that easy ... and yes it should be shown to the user that it is required |
Does it still show |
Interestingly the code seems to be there to handle 409 - https://github.com/go-gitea/gitea/pull/11311/files#diff-0fc7c09bb090d93aa9e9ce1e52c5a3a1R112 It doesn't seem to work however, it just shows |
ok message is different with ssl now |
Should still move the u2f parts to its own file later. |
Fix #11228