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
@@ -312,16 +315,35 @@ to interact and monitor the Scroll Application`,
312
315
},
313
316
}
314
317
318
+
funcbuildJWKSURLs(values []string) []string {
319
+
urls:=make([]string, 0, len(values))
320
+
seen:=make(map[string]struct{}, len(values))
321
+
322
+
for_, url:=rangevalues {
323
+
url=strings.TrimSpace(url)
324
+
ifurl=="" {
325
+
continue
326
+
}
327
+
if_, ok:=seen[url]; ok {
328
+
continue
329
+
}
330
+
seen[url] =struct{}{}
331
+
urls=append(urls, url)
332
+
}
333
+
334
+
returnurls
335
+
}
336
+
315
337
funcinit() {
316
338
ServeCommand.Flags().StringVarP(&pprofBind, "pprof", "", "", "Enable pprof on the given bind. This is useful for debugging purposes. E.g. --pprof=localhost:6060 or --pprof=:6060")
ServeCommand.Flags().IntVarP(&shutdownWait, "shutdown-wait", "", 10, "Wait interval how long the process is allowed to shutdown. First normal shutdown, then forced shutdown")
321
343
322
-
ServeCommand.Flags().StringVarP(&jwksUrl, "jwks-server", "", "", "JWKS Server to authenticate requests against")
344
+
ServeCommand.Flags().StringSliceVarP(&jwksUrls, "jwks-server", "", nil, "JWKS servers to authenticate requests against. Can be comma-separated or set multiple times")
323
345
324
-
ServeCommand.Flags().StringVarP(&userId, "user-id", "u", "", "Allowed user ID, if JWKS is not set. It checks claims.sub of the JWT token")
346
+
ServeCommand.Flags().StringVarP(&userId, "user-id", "u", "", "Allowed user ID. When JWKS authentication is enabled, checks claims.sub of the JWT token")
325
347
326
348
ServeCommand.Flags().BoolVarP(&idleScroll, "idle", "", false, "Don't start the queue manager, just use coldstarter")
0 commit comments