[Koha-bugs] [Bug 22132] Add Basic authentication to the REST API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 24 15:59:45 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22132

--- Comment #9 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 84355
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=84355&action=edit
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 at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list