From 03f89e2899660dbdadbc87d93048051c286e9a43 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 25 May 2015 14:07:06 -0400 Subject: Add custom HTTP header for API authentication --- app/constants.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/constants.php') diff --git a/app/constants.php b/app/constants.php index 08759cbd..df57fe30 100644 --- a/app/constants.php +++ b/app/constants.php @@ -76,3 +76,6 @@ defined('FILES_DIR') or define('FILES_DIR', 'data/files/'); // Escape html inside markdown text defined('MARKDOWN_ESCAPE_HTML') or define('MARKDOWN_ESCAPE_HTML', true); + +// API alternative authentication header, the default is HTTP Basic Authentication defined in RFC2617 +defined('API_AUTHENTICATION_HEADER') or define('API_AUTHENTICATION_HEADER', ''); -- cgit v1.2.3