Skip to content

Commit

Permalink
validate auth token for the checkconfig API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
arbll authored and truthbk committed Apr 19, 2018
1 parent c4a63cd commit 727553d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/agent/api/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ func getCSRFToken(w http.ResponseWriter, r *http.Request) {
}

func getConfigCheck(w http.ResponseWriter, r *http.Request) {
if err := apiutil.Validate(w, r); err != nil {
return
}

var response response.ConfigCheckResponse

response.Configs = common.AC.GetProviderLoadedConfigs()
Expand Down

0 comments on commit 727553d

Please sign in to comment.