summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-09 07:29:44 +0100
committerByron Jones <glob@mozilla.com>2015-03-09 07:29:44 +0100
commitde0781fdf4a15d824d880afb012d548a084f79b8 (patch)
treecf250a41a4e45e47b622a608124fec731919dcba /Bugzilla/WebService/Server
parent243d66a36e96729452b031b0cf67eed53c221782 (diff)
downloadbugzilla-de0781fdf4a15d824d880afb012d548a084f79b8.tar.gz
bugzilla-de0781fdf4a15d824d880afb012d548a084f79b8.tar.xz
Bug 1139755: Allow API authentication with X-Headers
r=dkl,a=glob
Diffstat (limited to 'Bugzilla/WebService/Server')
-rw-r--r--Bugzilla/WebService/Server/JSONRPC.pm2
-rw-r--r--Bugzilla/WebService/Server/REST.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Server/JSONRPC.pm b/Bugzilla/WebService/Server/JSONRPC.pm
index 70b8fd96c..2b5c7ec9b 100644
--- a/Bugzilla/WebService/Server/JSONRPC.pm
+++ b/Bugzilla/WebService/Server/JSONRPC.pm
@@ -379,7 +379,7 @@ sub _argument_type_check {
# Update the params to allow for several convenience key/values
# use for authentication
- fix_credentials($params);
+ fix_credentials($params, $self->cgi);
Bugzilla->input_params($params);
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm
index 940045b26..d02ba5523 100644
--- a/Bugzilla/WebService/Server/REST.pm
+++ b/Bugzilla/WebService/Server/REST.pm
@@ -76,7 +76,7 @@ sub handle {
my $params = $self->_retrieve_json_params;
- fix_credentials($params);
+ fix_credentials($params, $self->cgi);
# Fix includes/excludes for each call
rest_include_exclude($params);