aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server/REST/Resources
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-08-26 23:54:32 -0400
committerDave Lawrence <dlawrence@mozilla.com>2013-08-26 23:54:32 -0400
commit7450b47683d0aa972a522f5b70353e14269a95e6 (patch)
tree1c7908ede712092ac91b1508079e0b8dfebf67ec /Bugzilla/WebService/Server/REST/Resources
parent95aadcd21c9a56ef7d3478a2504980ea44f1bd9c (diff)
downloadbugs-7450b47683d0aa972a522f5b70353e14269a95e6.tar
bugs-7450b47683d0aa972a522f5b70353e14269a95e6.tar.gz
bugs-7450b47683d0aa972a522f5b70353e14269a95e6.tar.bz2
bugs-7450b47683d0aa972a522f5b70353e14269a95e6.tar.xz
bugs-7450b47683d0aa972a522f5b70353e14269a95e6.zip
Bug 893195 - Allow token based authentication for webservices
r=glob,a=sgreen
Diffstat (limited to 'Bugzilla/WebService/Server/REST/Resources')
-rw-r--r--Bugzilla/WebService/Server/REST/Resources/User.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/REST/Resources/User.pm b/Bugzilla/WebService/Server/REST/Resources/User.pm
index e2a2ea260..539a9313a 100644
--- a/Bugzilla/WebService/Server/REST/Resources/User.pm
+++ b/Bugzilla/WebService/Server/REST/Resources/User.pm
@@ -19,6 +19,16 @@ BEGIN {
sub _rest_resources {
my $rest_resources = [
+ qr{^/login$}, {
+ GET => {
+ method => 'login'
+ }
+ },
+ qr{^/logout$}, {
+ GET => {
+ method => 'logout'
+ }
+ },
qr{^/valid_login$}, {
GET => {
method => 'valid_login'