Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a CAPTCHA check during registration (#460)
* Pull in captcha lib * wip * Seed captcha with raw_rand * wip * Add backend code for generating captcha challenges * Add frontend flow for captcha * Remove StaticRng * Small renaming * Format ts * Fail to move captcha * Finish moving captcha to confirm screen * Captcha clean up * Retry captcha on failure * Clean up captcha retry * Update backend-test.hs did * Fix did file * Bump haskell-candid and update hs deps * Fix build issues in backend-tests Though tests are unlikely to pass * Bump GHC version on CI * Revert GHC to 884 and fix freeze accordingly * Make sure aeson is recent enough * Reset canister randomness before register * Simplify captcha for tests * Revert cabal files * Use correct webauthPK in backend-tests * Add captcha input in e2e tests * Show text when captcha didn't work * Try debugging lost request * Dummy commit to trigger Actions * Run formatter * Fix backend-tests files * Try fixing e2e-tests * Update backend-tests post rebase * Change disabled logic in confirmRegister * npm run format * Bump captcha waitForEnabled timeout to 10s * Disabled e2e tests to populate cache * Re-enable e2e-tests * Disable emulator e2e tests * Add conditional compilation for emulator * Rename captcha feature and use in tests * Add conditional USE_DUMMY_CAPTCHA build * Re-enable selenium emulator tests * Clean up rust CAPTCHA code * Document dummy_captcha * Clean up frontend code * Add some TODOs * Update lodepng-rust * Clean up backend-tests * Rename CaptchaResponse * Clean up frontend code more * Improve CAPTCHA trap messages * Move ProofOfWork to create_challenge * Make ChallengeKey a string * Show error if captcha is wrong * Remove leftover * Return 'BadChallenge' on bad CAPTCHA * Post rebase fix * Clean up * Add about USE_DUMMY_BUILD in backend tests * Remove fake comment * Bump number of inflight challenges to 500 * Clarify error message * Remove old logs * Link to tickets for updating libs * Update lodepng-rust * Disable selenium tests to populate GH cache * Re-enable tests * Wait for enabled captchaInput * Bump CAPTCHA timeout * Clarify USE_DUMMY_CAPTCHA usage * Request CAPTCHA during Identity creation * Add metric for inflight challenges
- Loading branch information