@@ -70,6 +70,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
7070 registerRoute ( {
7171 method : "GET" ,
7272 path : "/.well-known/jacs-pubkey.json" ,
73+ auth : "plugin" ,
7374 handler : async ( req : GatewayRequest , res : GatewayResponse ) => {
7475 if ( ! api . runtime . jacs ?. isInitialized ( ) ) {
7576 res . status ( 503 ) . json ( {
@@ -115,6 +116,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
115116 registerRoute ( {
116117 method : "GET" ,
117118 path : "/.well-known/agent-card.json" ,
119+ auth : "plugin" ,
118120 handler : async ( _req : GatewayRequest , res : GatewayResponse ) => {
119121 await serveGeneratedWellKnownDocument ( "/.well-known/agent-card.json" , res ) ;
120122 } ,
@@ -124,6 +126,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
124126 registerRoute ( {
125127 method : "GET" ,
126128 path : "/.well-known/jwks.json" ,
129+ auth : "plugin" ,
127130 handler : async ( _req : GatewayRequest , res : GatewayResponse ) => {
128131 await serveGeneratedWellKnownDocument ( "/.well-known/jwks.json" , res ) ;
129132 } ,
@@ -133,6 +136,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
133136 registerRoute ( {
134137 method : "GET" ,
135138 path : "/.well-known/jacs-agent.json" ,
139+ auth : "plugin" ,
136140 handler : async ( _req : GatewayRequest , res : GatewayResponse ) => {
137141 await serveGeneratedWellKnownDocument ( "/.well-known/jacs-agent.json" , res ) ;
138142 } ,
@@ -142,6 +146,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
142146 registerRoute ( {
143147 method : "GET" ,
144148 path : "/.well-known/jacs-extension.json" ,
149+ auth : "plugin" ,
145150 handler : async ( _req : GatewayRequest , res : GatewayResponse ) => {
146151 await serveGeneratedWellKnownDocument ( "/.well-known/jacs-extension.json" , res ) ;
147152 } ,
@@ -151,6 +156,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
151156 registerRoute ( {
152157 method : "POST" ,
153158 path : "/jacs/verify" ,
159+ auth : "plugin" ,
154160 handler : async ( req : GatewayRequest , res : GatewayResponse ) => {
155161 if ( ! api . runtime . jacs ?. isInitialized ( ) ) {
156162 res . status ( 503 ) . json ( { error : "JACS not initialized" } ) ;
@@ -185,6 +191,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
185191 registerRoute ( {
186192 method : "GET" ,
187193 path : "/jacs/agent" ,
194+ auth : "plugin" ,
188195 handler : async ( _req : GatewayRequest , res : GatewayResponse ) => {
189196 if ( ! api . runtime . jacs ?. isInitialized ( ) ) {
190197 res . status ( 503 ) . json ( {
@@ -229,6 +236,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
229236 registerRoute ( {
230237 method : "GET" ,
231238 path : "/jacs/status" ,
239+ auth : "plugin" ,
232240 handler : async ( req : GatewayRequest , res : GatewayResponse ) => {
233241 const config = api . config ;
234242 const initialized = api . runtime . jacs ?. isInitialized ( ) || false ;
@@ -247,6 +255,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
247255 registerRoute ( {
248256 method : "GET" ,
249257 path : "/jacs/attestation" ,
258+ auth : "plugin" ,
250259 handler : async ( req : GatewayRequest , res : GatewayResponse ) => {
251260 if ( ! api . runtime . jacs ?. isInitialized ( ) ) {
252261 res . status ( 503 ) . json ( {
0 commit comments