-
Notifications
You must be signed in to change notification settings - Fork 927
Implement ReCaptchaEnterprise for App Check #5595
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
🦋 Changeset detectedLatest commit: 54b258c The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Binary Size ReportAffected SDKs
Test Logs |
55382f0
to
e5725c2
Compare
export function getFakeGreCAPTCHA(): GreCAPTCHA { | ||
return { | ||
export function getFakeGreCAPTCHA( | ||
isTopLevel: boolean = 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.
what does it mean?
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.
The grecaptcha enterprise object is a nested copy of grecaptcha (see the types in recaptcha.ts lines 185 and 189) in a property with the key enterprise
. To create a fake grecaptcha object, it recursively calls itself once to put a copy of itself inside the enterprise
property with all the same keys except enterprise
. Should I put a comment here or where the types are defined in recaptcha.ts?
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.
A comment to explain what this flag does would be helpful
Co-authored-by: Feiyang <[email protected]>
@@ -1551,6 +1551,15 @@ declare namespace firebase.appCheck { | |||
*/ |
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.
@kevinthecheung This file is a documentation source.
@@ -88,6 +83,61 @@ export class ReCaptchaV3Provider implements AppCheckProvider { | |||
} | |||
} | |||
|
|||
/** | |||
* App Check provider that can obtain a reCAPTCHA Enterprise token and exchange it |
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.
@kevinthecheung This comment will go into documentation.
Add
ReCaptchaEnterpriseProvider
and associated methods toapp-check
andapp-check-compat
.E2E tests were successful.
We want to coordinate the release with iOS/Android, do not merge until the coordinated date (TBD).