Parse ACL tokens for the catalog register/deregister endpoints

Fix #1738
This commit is contained in:
Nathan Zadoks 2016-05-17 13:16:33 -04:00
parent 590379b84a
commit 53c14e139f
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ func (s *HTTPServer) CatalogRegister(resp http.ResponseWriter, req *http.Request
if args.Datacenter == "" {
args.Datacenter = s.agent.config.Datacenter
}
s.parseToken(req, &args.Token)
// Forward to the servers
var out struct{}
@ -40,6 +41,7 @@ func (s *HTTPServer) CatalogDeregister(resp http.ResponseWriter, req *http.Reque
if args.Datacenter == "" {
args.Datacenter = s.agent.config.Datacenter
}
s.parseToken(req, &args.Token)
// Forward to the servers
var out struct{}