[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 Mar 12 07:29:57 CET 2020


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

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #33 from David Cook <dcook at prosentient.com.au> ---
Unfortunately, RESTBasicAuth doesn't work with CGI. 

Admittedly, it would be an unfortunate idea to use the API with CGI, but it's
worth noting. 

To test (w/ koha-testing-docker):
1. koha-plack --disable kohadev
2. restart_all
3. curl -u koha:koha http://localhost:8080/api/v1/patrons
4. Observe the following response:
{"error":"Authentication failure."}

After a bit of debugging, it appears that Mojolicious doesn't detect the
Authorization header. It'll just have the accept, user-agent, and host headers.

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


More information about the Koha-bugs mailing list