-
Notifications
You must be signed in to change notification settings - Fork 937
Implement reCAPTCHA Enterprise flow for phone provider #7814
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
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
…to phone API requests (#7786) * Update injectRecaptchaFields to inject recaptcha fields into phone API requests * Fix lint * Rename captchaResp and fakeToken params * Format
8e29413
to
124fbb3
Compare
|
||
describe('platform_browser/providers/phone', () => { | ||
let auth: TestAuth; | ||
|
||
beforeEach(async () => { | ||
fetch.setUp(); | ||
auth = await testAuth(); | ||
auth.settings.appVerificationDisabledForTesting = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the tests fail if it's set to true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, tests with Recaptcha Enterprise enabled will fail if appVerificationDisabledForTesting is set to true.
(I mistakenly removed the test in the previous commit, just added it back)
Discussion
reCAPTCHA Enterprise + phone auth integration.
_verifyPhoneNumber
to fetch and use reCAPTCHA Enterprise tokenhandleRecaptchaFlow
to handle Phone ProviderRecaptchaEnterpriseVerifier.verify()
to return a mock whenappVerificationDisabledForTesting
is trueTesting