From 9ea7fff91712e989a8997f0c7d4a9d5f2247a916 Mon Sep 17 00:00:00 2001 From: mpl Date: Mon, 6 Jul 2015 18:01:32 +0200 Subject: [PATCH] pkg/serverinit: auth wrap importer handler I suspect the plan was to let the importer handler take care of its own auth, but I don't think it's done. So this change lets camlistored wrap the importer handler with the usual auth layer. Change-Id: I6101eaec9b9cdc0d9b670c917122533d367bc73d --- pkg/serverinit/serverinit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/serverinit/serverinit.go b/pkg/serverinit/serverinit.go index d2a615bb8..6c1379b4d 100644 --- a/pkg/serverinit/serverinit.go +++ b/pkg/serverinit/serverinit.go @@ -381,7 +381,7 @@ func handlerTypeWantsAuth(handlerType string) bool { // TODO(bradfitz): ask the handler instead? This is a bit of a // weird spot for this policy maybe? switch handlerType { - case "ui", "search", "jsonsign", "sync", "status", "help": + case "ui", "search", "jsonsign", "sync", "status", "help", "importer": return true } return false