Skip to content

Commit 91d7da3

Browse files
Fix: add required auth to plugin HTTP routes
1 parent f321624 commit 91d7da3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export default function register(api: OpenClawPluginApi) {
102102
// Register Linear webhook handler on a dedicated route
103103
api.registerHttpRoute({
104104
path: "/linear/webhook",
105+
auth: "plugin",
106+
match: "exact",
105107
handler: async (req, res) => {
106108
await handleLinearWebhook(api, req, res);
107109
},
@@ -110,6 +112,8 @@ export default function register(api: OpenClawPluginApi) {
110112
// Back-compat route so existing production webhook URLs keep working.
111113
api.registerHttpRoute({
112114
path: "/hooks/linear",
115+
auth: "plugin",
116+
match: "exact",
113117
handler: async (req, res) => {
114118
await handleLinearWebhook(api, req, res);
115119
},
@@ -118,6 +122,8 @@ export default function register(api: OpenClawPluginApi) {
118122
// Register OAuth callback route
119123
api.registerHttpRoute({
120124
path: "/linear/oauth/callback",
125+
auth: "plugin",
126+
match: "exact",
121127
handler: async (req, res) => {
122128
await handleOAuthCallback(api, req, res);
123129
},

0 commit comments

Comments
 (0)