mitchell852 opened a new issue #1829: GET /api/1.3/cdns returns wrong response 
code and response format when unauthorized or forbidden
URL: https://github.com/apache/incubator-trafficcontrol/issues/1829
 
 
   If you try to access GET /api/1.3/cdns without being logged in (i.e. no 
valid cookie) the response should look like this:
   
   401 Unauthorized
   
   {
   alerts: [
   {
   level: "error",
   text: "Unauthorized, please log in."
   }
   ]
   }
   
   If you are authenticated (your login cookie is valid) but your user doesn't 
have the proper priv level, the response should look like this:
   
   403 Forbidden
   
   {
   alerts: [
   {
   level: "error",
   text: "Forbidden."
   }
   ]
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to