Skip to content

Commit

Permalink
MINOR: api: add browser challenge to site rule (#60)
Browse files Browse the repository at this point in the history
The NGWAF now supports the `browserChallenge` action in site rules as part of
the Bot Management product. This commit adds the `allowInteractive` capability
to the Site Rule struct to allow for toggling interactive/non-interactive
challenges.
  • Loading branch information
daniel-corbett committed Mar 15, 2024
1 parent 16da19e commit 1b937d5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2129,10 +2129,11 @@ type Condition struct {

// Action contains the rule action
type Action struct {
Type string `json:"type,omitempty"` //(block, allow, exclude)
Signal string `json:"signal,omitempty"`
ResponseCode int `json:"responseCode,omitempty"` //(400-499)
RedirectURL string `json:"redirectURL,omitempty"` // requires ResponseCode 301 or 302
Type string `json:"type,omitempty"` //(block, allow, exclude, browserChallenge)
Signal string `json:"signal,omitempty"`
ResponseCode int `json:"responseCode,omitempty"` //(400-499)
RedirectURL string `json:"redirectURL,omitempty"` // requires ResponseCode 301 or 302
AllowInteractive bool `json:"allowInteractive,omitempty"` // used with browserChallenge
}

// ClientIdentifier contains the client identifier fields for site rules of type rate_limit
Expand Down

0 comments on commit 1b937d5

Please sign in to comment.