Koha-clms/Koha/REST
Tomas Cohen Arazi 2403b01021 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 26af040c79)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 14e2dd9c9f)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-02-07 23:16:36 +00:00
..
Plugin Bug 21116: Add API routes through plugins 2018-09-20 12:09:27 +01:00
V1 Bug 22132: Add Basic authentication to the API 2019-02-07 23:16:36 +00:00
V1.pm Bug 21334: Add bibliographic content type definitions 2018-09-20 15:02:31 +01:00