mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
Parse ACL tokens for the catalog register/deregister endpoints
Fix #1738
This commit is contained in:
parent
75010d1924
commit
c4b362d5d2
@ -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{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user