diff --git a/agent/agent_endpoint.go b/agent/agent_endpoint.go index 0f9ccb8529..7d6a19470a 100644 --- a/agent/agent_endpoint.go +++ b/agent/agent_endpoint.go @@ -968,7 +968,9 @@ func (s *HTTPServer) AgentConnectAuthorize(resp http.ResponseWriter, req *http.R }, nil } +// connectAuthorizeResp is the response format/structure for the +// /v1/agent/connect/authorize endpoint. type connectAuthorizeResp struct { - Authorized bool - Reason string + Authorized bool // True if authorized, false if not + Reason string // Reason for the Authorized value (whether true or false) }