summaryrefslogtreecommitdiff
path: root/jsonrpc.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-25 14:07:06 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-25 14:07:06 -0400
commit03f89e2899660dbdadbc87d93048051c286e9a43 (patch)
tree3359d26fb8a46de2cdbc66b173ef14dfa8a8b0f8 /jsonrpc.php
parent00c2e5c80ee4b6c5e5234e5b6a333bb19edd9b76 (diff)
Add custom HTTP header for API authentication
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index c3de1fc5..6c4b9d3d 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -3,6 +3,7 @@
require __DIR__.'/app/common.php';
$server = new JsonRPC\Server;
+$server->setAuthenticationHeader(API_AUTHENTICATION_HEADER);
$server->before('authentication');
$server->attach(new Api\Action($container));
$server->attach(new Api\App($container));