-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Clean up WebAuthn javascript code and remove JQuery code #22697
Commits on Jan 29, 2023
-
Fix Uncaught DOMException: Failed to execute 'atob' on 'Window'
There is a missing import within the `uint8-to-base64` javascript package which assumes that `atob` and `btoa` are present and exported instead of using the `window.atob` and `window.btoa` functions. This previously worked but as far as I can see things have become more strict and this no longer works. The dependency is small and I do not believe that we gain much from having this code as an external dependency. I think instead we should just consume this dependency and bring the code directly into Gitea itself - the code is itself just some standard incantation for creating base64 arrays in javascript. Therefore this PR simply removes the dependency on `uint8-to-base64` and rewrites the functions used in it. Fix go-gitea#22507 Signed-off-by: Andrew Thornton <art27@cantab.net>
Configuration menu - View commit details
-
Copy full SHA for df2adb2 - Browse repository at this point
Copy the full SHA df2adb2View commit details -
Update web_src/js/features/user-auth-webauthn.js
Co-authored-by: delvh <dev.lh@web.de>
Configuration menu - View commit details
-
Copy full SHA for f40e516 - Browse repository at this point
Copy the full SHA f40e516View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07e40bd - Browse repository at this point
Copy the full SHA 07e40bdView commit details -
Include findings from go-gitea#22654
Signed-off-by: Andrew Thornton <art27@cantab.net>
Configuration menu - View commit details
-
Copy full SHA for dcd6307 - Browse repository at this point
Copy the full SHA dcd6307View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a910b9 - Browse repository at this point
Copy the full SHA 4a910b9View commit details
Commits on Jan 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f038244 - Browse repository at this point
Copy the full SHA f038244View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6326456 - Browse repository at this point
Copy the full SHA 6326456View commit details
Commits on Jan 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7864ed8 - Browse repository at this point
Copy the full SHA 7864ed8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b37e6a1 - Browse repository at this point
Copy the full SHA b37e6a1View commit details -
Clean up WebAuthn javascript code and remove JQuery code
There were several issues with the WebAuthn registration and testing code and the style was very old javascript with jquery callbacks. This PR uses async and fetch to replace the JQuery code. Ref go-gitea#22651 Signed-off-by: Andrew Thornton <art27@cantab.net>
Configuration menu - View commit details
-
Copy full SHA for 104a864 - Browse repository at this point
Copy the full SHA 104a864View commit details
Commits on Feb 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7acd2a3 - Browse repository at this point
Copy the full SHA 7acd2a3View commit details
Commits on Feb 2, 2023
-
Co-authored-by: silverwind <me@silverwind.io>
Configuration menu - View commit details
-
Copy full SHA for 834c30f - Browse repository at this point
Copy the full SHA 834c30fView commit details -
Configuration menu - View commit details
-
Copy full SHA for dbfdea9 - Browse repository at this point
Copy the full SHA dbfdea9View commit details -
Signed-off-by: Andrew Thornton <art27@cantab.net>
Configuration menu - View commit details
-
Copy full SHA for 983c6d3 - Browse repository at this point
Copy the full SHA 983c6d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0414113 - Browse repository at this point
Copy the full SHA 0414113View commit details
Commits on May 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4ff437c - Browse repository at this point
Copy the full SHA 4ff437cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8c6827 - Browse repository at this point
Copy the full SHA b8c6827View commit details
Commits on May 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 074173c - Browse repository at this point
Copy the full SHA 074173cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2961333 - Browse repository at this point
Copy the full SHA 2961333View commit details -
Configuration menu - View commit details
-
Copy full SHA for e402020 - Browse repository at this point
Copy the full SHA e402020View commit details -
Signed-off-by: Andrew Thornton <art27@cantab.net>
Configuration menu - View commit details
-
Copy full SHA for c4fd5bb - Browse repository at this point
Copy the full SHA c4fd5bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43c616e - Browse repository at this point
Copy the full SHA 43c616eView commit details
Commits on May 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1abde48 - Browse repository at this point
Copy the full SHA 1abde48View commit details
Commits on Jun 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f500353 - Browse repository at this point
Copy the full SHA f500353View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3026b5b - Browse repository at this point
Copy the full SHA 3026b5bView commit details
Commits on Jun 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3f918f8 - Browse repository at this point
Copy the full SHA 3f918f8View commit details -
Update web_src/js/features/user-auth-webauthn.js
Co-authored-by: delvh <dev.lh@web.de>
Configuration menu - View commit details
-
Copy full SHA for d412383 - Browse repository at this point
Copy the full SHA d412383View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90575a0 - Browse repository at this point
Copy the full SHA 90575a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63e417e - Browse repository at this point
Copy the full SHA 63e417eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd08d9e - Browse repository at this point
Copy the full SHA fd08d9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93ba232 - Browse repository at this point
Copy the full SHA 93ba232View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41dba0c - Browse repository at this point
Copy the full SHA 41dba0cView commit details
Commits on Jun 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1ce6d71 - Browse repository at this point
Copy the full SHA 1ce6d71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33de52e - Browse repository at this point
Copy the full SHA 33de52eView commit details