You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f7c781c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: app/en/guides/contextual-access/examples/page.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "Running a Server"
3
3
description: "Run open-source example webhook servers to get started with Contextual Access"
4
4
---
5
5
6
-
# Running an Server
6
+
# Running a Server
7
7
8
8
The fastest way to get started with Contextual Access is to run one of the open-source example servers. These are example Go implementations you can use as-is or as a starting point for your own server.
9
9
@@ -43,7 +43,7 @@ cd logic-extensions-examples/
43
43
**Advanced server (with web dashboard):**
44
44
45
45
```bash
46
-
go run ./examples/contextual_access/advanced_server -config ./examples/advanced_server/example-config.yaml
46
+
go run ./examples/contextual_access/advanced_server -config ./examples/contextual_access/advanced_server/example-config.yaml
47
47
```
48
48
49
49
**Focused examples:**
@@ -56,24 +56,24 @@ go run ./examples/contextual_access/pii_redactor -types "email,ssn,credit_card"
56
56
go run ./examples/contextual_access/user_blocking -block "user1,user2"
57
57
58
58
# Content filter (access, pre, post)
59
-
go run ./examples/contextual_access/content_filter -config ./examples/content_filter/example-config.yaml
59
+
go run ./examples/contextual_access/content_filter -config ./examples/contextual_access/content_filter/example-config.yaml
60
60
61
61
# A/B testing (pre-hook)
62
-
go run ./examples/contextual_access/ab_testing -config ./examples/ab_testing/example-config.yaml
62
+
go run ./examples/contextual_access/ab_testing -config ./examples/contextual_access/ab_testing/example-config.yaml
63
63
64
64
# Basic rules (all hooks, configurable via YAML)
65
-
go run ./examples/contextual_access/basic_rules -config ./examples/basic_rules/example-config.yaml
65
+
go run ./examples/contextual_access/basic_rules -config ./examples/contextual_access/basic_rules/example-config.yaml
66
66
```
67
67
68
68
Each server exposes `GET /health`, `POST /access`, `POST /pre`, and `POST /post` (or a subset, depending on which hook points it implements).
69
69
70
-
## Connect to the Arcade
70
+
## Connect to Arcade
71
71
72
72
Once your server is running:
73
73
74
74
1. Open the **Arcade Dashboard** and navigate to **Contextual Access**
75
75
2. Click **Create Extension** and enter your server's base URL and endpoint paths
76
-
4. Create **hook configurations** to attach the extension to the hook points you want
76
+
3. Create **hook configurations** to attach the extension to the hook points you want
77
77
78
78
See [How Hooks Work](/guides/contextual-access/how-hooks-work) for details on configuring extensions and hook points.
0 commit comments