Create/Update tenant with ReCAPTCHA Config#1586
Conversation
- Updated reCaptcha config type align with backend API. - Support create and update tenants with reCaptcha config. - Added reCaptcha unit tests on tenants.
renkelvin
left a comment
There was a problem hiding this comment.
Looks good to me. Please add Lahiru for approval.
lahirumaramba
left a comment
There was a problem hiding this comment.
Thank you, Liubin!
I added some comments and questions. Didn't get a chance to dive into unit tests. I will take another look later. Thanks!
Major updates - Removed ManagedRuleAuth class and move the validation to recaptchaAuthConfig object.
Thank you @lahirumaramba for the review. Addressed majority comments. Resolved the trivial changes and left comments on the ones needed. |
lahirumaramba
left a comment
There was a problem hiding this comment.
Thank you! Just a few nits but otherwise LGTM!
| '"RecaptchaConfig.emailPasswordEnforcementState" must be either "OFF", "AUDIT" or "ENFORCE".', | ||
| ); | ||
| } | ||
| } |
There was a problem hiding this comment.
The SDK shouldn't allow empty strings in the request to the BE service so this error technically should not occur (from the backend). I felt like the check is redundant because you check for a restricted set of strings here regardless. Not a big issue so I will leave it up to you to decide the best path here.
Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
* Support reCaptcha config /create update on tenants. - Support create and update tenants with reCaptcha config. - Added reCaptcha unit tests on tenants operations.
* Support reCaptcha config /create update on tenants. - Support create and update tenants with reCaptcha config. - Added reCaptcha unit tests on tenants operations.
* Support reCaptcha config /create update on tenants. - Support create and update tenants with reCaptcha config. - Added reCaptcha unit tests on tenants operations.
* Support reCaptcha config /create update on tenants. - Support create and update tenants with reCaptcha config. - Added reCaptcha unit tests on tenants operations.
reCAPTCHA support * Defined reCAPTCHA config. (#1574) - Added reCAPTCHA protection states. - Added reCAPTCHA action rule. - Added reCAPTCHA key config. * Create/Update tenant with ReCAPTCHA Config (#1586) * Support reCaptcha config /create update on tenants. - Support create and update tenants with reCaptcha config. - Added reCaptcha unit tests on tenants operations. * Project config - Recaptcha config (#1595) * Recaptcha config changes in project config. - Implemented getProjectConfig. - Implemented updateProjectConfig. - Updated error code. - Add Term of Service consents. * Recapcha integ test (#1599) * Added integ test for Project Config and Tenants update on reCAPTCHA config * Account defender support for reCAPTCHA (#1616) * Support use_account_defender add-on feature for reCAPTCHA config. * Added integration test for account defender feature.
Support reCaptcha config /create update on tenants.
- Updated reCaptcha config type align with backend API.
- Support create and update tenants with reCaptcha config.
- Added reCaptcha unit tests on tenants.
Discussion
If not, go file an issue about this before creating a pull request to discuss.
Testing
API Changes
us make Firebase APIs better, please propose your change in an issue so that we
can discuss it together.