From 4726923228d810ea0cd1800b17a9244c6f0d8eef Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 9 Nov 2009 19:15:28 +0000 Subject: Bug 525734: Allow WebService clients to authenticate using Bugzilla_login and Bugzilla_password Patch by Max Kanat-Alexander r=dkl, a=mkanat --- Bugzilla/WebService.pm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) mode change 100755 => 100644 Bugzilla/WebService.pm (limited to 'Bugzilla/WebService.pm') diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm old mode 100755 new mode 100644 index 75fcf6bc9..222923e70 --- a/Bugzilla/WebService.pm +++ b/Bugzilla/WebService.pm @@ -142,11 +142,51 @@ how this is implemented for those frontends. =head1 LOGGING IN +There are various ways to log in: + +=over + +=item C + You can use L to log in as a Bugzilla user. This issues standard HTTP cookies that you must then use in future calls, so your client must be capable of receiving and transmitting cookies. +=item C and C + +B + +You can specify C and C as arguments +to any WebService method, and you will be logged in as that user if your +credentials are correct. Here are the arguments you can specify to any +WebService method to perform a login: + +=over + +=item C (string) - A user's login name. + +=item C (string) - That user's password. + +=item C (boolean) - Optional. If true, +then your login will only be valid for your IP address. + +=item C (boolean) - Optional. If true, +then the cookie sent back to you with the method response will +not expire. + +=back + +The C and C options +are only used when you have also specified C and +C. + +Note that Bugzilla will return HTTP cookies along with the method +response when you use these arguments (just like the C method +above). + +=back + =head1 STABLE, EXPERIMENTAL, and UNSTABLE Methods are marked B if you can expect their parameters and -- cgit v1.2.3-24-g4f1b