Skip to content

Commit 77b54be

Browse files
feat: [recaptchaenterprise] Add include_recaptcha_script for as a new action in firewall policies (#5108)
* feat: Add include_recaptcha_script for as a new action in firewall policies PiperOrigin-RevId: 612851792 Source-Link: googleapis/googleapis@49ea2c0 Source-Link: googleapis/googleapis-gen@460fdcb Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYWVudGVycHJpc2UvLk93bEJvdC55YW1sIiwiaCI6IjQ2MGZkY2JiYmUwMGYzNWIxYzU5MWIxZjNlZjBjNzdlYmQzY2UyNzcifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent fe6fc2c commit 77b54be

5 files changed

Lines changed: 4358 additions & 252 deletions

File tree

packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,13 @@ message FirewallAction {
16311631
// hitting the backend.
16321632
message BlockAction {}
16331633

1634+
// An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript
1635+
// code into the HTML returned by the site backend. This reCAPTCHA
1636+
// script is tasked with collecting user signals on the requested web page,
1637+
// issuing tokens as a cookie within the site domain, and enabling their
1638+
// utilization in subsequent page requests.
1639+
message IncludeRecaptchaScriptAction {}
1640+
16341641
// A redirect action returns a 307 (temporary redirect) response, pointing
16351642
// the user to a ReCaptcha interstitial page to attach a token.
16361643
message RedirectAction {}
@@ -1663,6 +1670,10 @@ message FirewallAction {
16631670
// error code.
16641671
BlockAction block = 2;
16651672

1673+
// This action will inject reCAPTCHA JavaScript code into the HTML page
1674+
// returned by the site backend.
1675+
IncludeRecaptchaScriptAction include_recaptcha_script = 6;
1676+
16661677
// This action will redirect the request to a ReCaptcha interstitial to
16671678
// attach a token.
16681679
RedirectAction redirect = 5;

0 commit comments

Comments
 (0)