Skip to content

Configure reCAPTCHA score threshold for local development#10543

Merged
aduth merged 1 commit intomainfrom
aduth-recaptcha-dev-score-threshold
May 2, 2024
Merged

Configure reCAPTCHA score threshold for local development#10543
aduth merged 1 commit intomainfrom
aduth-recaptcha-dev-score-threshold

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 2, 2024

🛠 Summary of changes

Adds a default score threshold for reCAPTCHA assessments in local development, to avoid having to require reviewers to specify this manually in application.yml in order to test related work (e.g. see Testing Plan in #10540).

📜 Testing Plan

  1. Go to http://localhost:3000/
  2. Create an account
  3. When prompted to select MFA, choose phone
  4. Enter an international phone number, e.g. +610491570006
  5. In the reCAPTCHA score debugger tool, enter a value between 0.0 and 1.0
  6. Click "Send code"
  7. Observe that you are blocked if the score you entered was less than 0.5

changelog: Internal, reCAPTCHA, Configure reCAPTCHA score threshold for local development
@aduth aduth merged commit 8795b4e into main May 2, 2024
@aduth aduth deleted the aduth-recaptcha-dev-score-threshold branch May 2, 2024 20:50
@jmdembe jmdembe mentioned this pull request May 7, 2024
samathad2023 pushed a commit that referenced this pull request May 11, 2024
changelog: Internal, reCAPTCHA, Configure reCAPTCHA score threshold for local development
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.

2 participants