]> git.ipfire.org Git - thirdparty/pdns.git/commit
JSON-API: Send 401 on bad API-Key 2215/head
authorPieter Lexis <pieter@plexis.eu>
Tue, 10 Feb 2015 18:09:51 +0000 (19:09 +0100)
committerPieter Lexis <pieter@plexis.eu>
Mon, 16 Feb 2015 16:34:26 +0000 (17:34 +0100)
commit53255086857a44466ecc7e3f728aa9c2df8bec66
tree4587fd1c96c0c993a02d17c2d0d47a5da17ccacf
parentfba8bf2b9bc9fc35fc56fb42becaf75a5e707c6d
JSON-API: Send 401 on bad API-Key

  * Closes #2179
  * We send an HTTP 401 (Unauthorized) when:
    * The API Key is wrong
    * The API Key is empty or missing
  * Authentication failures are logged as Error (was Debug)
  * Fix the API regression test to accept this 401 as valid
pdns/webserver.cc
pdns/webserver.hh
regression-tests.api/test_Basics.py