Skip to content

Commit b6c9268

Browse files
committed
auth plugin doc updates
1 parent 94766bb commit b6c9268

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/auth_plugins.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,3 +448,20 @@ module Hooks
448448
end
449449
end
450450
```
451+
452+
The configuration for this IP filtering plugin would look like this:
453+
454+
```yaml
455+
path: /example
456+
handler: CoolNewHandler # could be any handler you want to use
457+
458+
auth:
459+
type: ip_filtering_plugin # using the custom IP filtering plugin (remember IpFilteringPlugin becomes ip_filtering_plugin)
460+
461+
# You can specify additional options in the `opts` section but the `allowed_ips` option is required for this plugin demo to work
462+
opts:
463+
allowed_ips: # list of allowed IPs
464+
- "<ALLOWED_IP_1>"
465+
- "<ALLOWED_IP_2>"
466+
- "<ALLOWED_IP_3>"
467+
```

0 commit comments

Comments
 (0)