- Notifications
You must be signed in to change notification settings - Fork 14
docs(samples): added account defender samples and tests #771
Conversation
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Outdated Show resolved Hide resolved
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Outdated Show resolved Hide resolved
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Outdated Show resolved Hide resolved
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Outdated Show resolved Hide resolved
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Outdated Show resolved Hide resolved
samples/snippets/cloud-client/src/test/java/app/SnippetsIT.java Outdated Show resolved Hide resolved
samples/snippets/cloud-client/src/test/java/app/SnippetsIT.java Outdated Show resolved Hide resolved
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Outdated Show resolved Hide resolved
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Show resolved Hide resolved
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Outdated Show resolved Hide resolved
...nippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java Outdated Show resolved Hide resolved
# Conflicts: # samples/snippets/cloud-client/src/main/java/recaptcha/account_defender/AccountDefenderAssessment.java
| Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
| String recaptchaAction = "recaptcha-action"; | ||
| | ||
| // Unique ID of the customer, such as email, customer ID, etc. | ||
| String uniqueCustomerId = "default" + UUID.randomUUID().toString().split("-")[0]; |
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.
Did you consider to align the variable names to the documentation?
https://cloud.google.com/recaptcha-enterprise/docs/account-defender#interpret-assessment-details uses "user identifier", not "customer ID".
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.
Thanks for pointing it out! Changed the var name. PTAL
| Looks good to me. I don't have sample readability. Let me find appropriate reviewer. |
🤖 I have created a release *beep* *boop* --- ## [2.6.0](v2.5.0...v2.6.0) (2022-05-19) ### Features * add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-recaptchaenterprise/issues/1440)) ([#799](#799)) ([dddabca](dddabca)) ### Documentation * **samples:** added account defender samples and tests ([#771](#771)) ([eca03a1](eca03a1)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#795](#795)) ([fcdd308](fcdd308)) * update dependency org.springframework.boot:spring-boot-starter-test to v2.7.0 ([#796](#796)) ([2aa3477](2aa3477)) * update dependency org.springframework.boot:spring-boot-starter-thymeleaf to v2.7.0 ([#797](#797)) ([2aac201](2aac201)) * update dependency org.springframework.boot:spring-boot-starter-web to v2.7.0 ([#798](#798)) ([abfb369](abfb369)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [2.6.0](googleapis/java-recaptchaenterprise@v2.5.0...v2.6.0) (2022-05-19) ### Features * add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-recaptchaenterprise/issues/1440)) ([#799](googleapis/java-recaptchaenterprise#799)) ([9e5d4da](googleapis/java-recaptchaenterprise@9e5d4da)) ### Documentation * **samples:** added account defender samples and tests ([#771](googleapis/java-recaptchaenterprise#771)) ([77992d1](googleapis/java-recaptchaenterprise@77992d1)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#795](googleapis/java-recaptchaenterprise#795)) ([365a84f](googleapis/java-recaptchaenterprise@365a84f)) * update dependency org.springframework.boot:spring-boot-starter-test to v2.7.0 ([#796](googleapis/java-recaptchaenterprise#796)) ([33674ee](googleapis/java-recaptchaenterprise@33674ee)) * update dependency org.springframework.boot:spring-boot-starter-thymeleaf to v2.7.0 ([#797](googleapis/java-recaptchaenterprise#797)) ([91e2e99](googleapis/java-recaptchaenterprise@91e2e99)) * update dependency org.springframework.boot:spring-boot-starter-web to v2.7.0 ([#798](googleapis/java-recaptchaenterprise#798)) ([92ff237](googleapis/java-recaptchaenterprise@92ff237)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Added samples and tests for reCAPTCHA Enterprise Account Defender.