]> git.koha-community.org Git - koha.git/commit
Bug 22132: Add Basic authentication to the API
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 15 Jan 2019 16:23:23 +0000 (13:23 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 7 Feb 2019 23:16:36 +0000 (23:16 +0000)
commit2403b01021e66cae65e210426b644cc6a695ff5f
tree2fbac0287c5fbd16ccb3fdbf564f05cd830015ec
parent2b12b70de4a117365cf76521be2119aa01a00957
Bug 22132: Add Basic authentication to the API

This patch implements Basic authentication for the API to aid testers
and developers with tools like Postman.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/auth_basic.t
=> SUCCESS: Tests pass!
- Open Postman or your favourite tool
- In Authorization, choose Basic auth.
- Enter the username and password of a known privileged user.
- Hit an endpoint with Postman, for example:
  ] GET http://kohadev-intra.myDNSname.org:8081/api/v1/patrons
=> SUCCESS: Basic authentication is great!
- Sign off :-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 26af040c79e548e9388346b247f509f743401c34)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 14e2dd9c9f6ee3c2796954f3e25433197c41f9d5)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/REST/V1/Auth.pm