Skip to content

Skip phone verification is TeleSign is down

What does this MR do and why?

Screenshots or screen recordings

Screen_Recording_2023-04-14_at_3.00.27_pm

How to set up and validate locally

  1. Enable Phone Verification in rails console:
Feature.enable(:identity_verification)
Feature.enable(:identity_verification_phone_number)
ApplicationSetting.first.update(email_confirmation_setting: "hard", require_admin_approval_after_user_signup: false, 
telesign_customer_xid: "123", telesign_api_key: "123")
  1. Sign-up as a new user. You will taken to the identity verification page where you will be asked to verify your email address.
  2. Mark the user as medium risk in the console:
UserCustomAttribute.create(user: User.last, key: 'arkose_risk_band', value: 'MEDIUM')
  1. Refresh the page, you should now see a section to verify your phone number.
  2. Enter any phone number and click on Send code.
  3. It should get marked as verified since the incorrect TeleSign credentials were configured (we don't have any other way currently to mimic TeleSign being down).
  4. The correct TeleSign credentials can be found in 1Password. You can also re-try phone verification with the correct credentials by:
ApplicationSetting.first.update(telesign_customer_xid: XX, telesign_api_key: XX)
Users::PhoneNumberValidation.last.delete

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Hinam Mehra

Merge request reports