[Koha] Koha Rest API basic authentication failure - URGENT

ravikumar c ravikumarc2002 at gmail.com
Mon Dec 28 02:41:56 NZDT 2020


Hi All

   I have been facing a strange issue using Koha API basic authentication
since last 1 month for which I need urgent help. Tried all possible
suggestions found on net but no luck.

If I enable "RESTBasicAuth"  try the basic curl command like  below for the
bywater demo site , things work absolutely fine with no issues.

$ curl -u bywater:bywater -i -H 'Accept:application/json'
https://intranet.bywatersolutions.com/api/v1/cities

Response - EVERYTHING SEEMS SO EASY.

[{"city_id":3,"country":"","name":"Chicago","postal_code":"60601","state":"IL"},{"city_id":4,"country":"","name":"Chicago","postal_code":"60611","state":"IL"},{"city_id":5,"country":"","name":"Austin","postal_code":"78741","state":"TX"},{"city_id":6,"country":"INDIA","name":"habra","postal_code":"743222","state":"WEST
BENGAL"}]

But if I try the same with my local ubuntu installation of Koha it doesn't
work even after enabling "RESTBasicAuth".


HTTP/1.1 401 Unauthorized
Date: Sun, 27 Dec 2020 13:29:39 GMT
Server: Apache/2.4.41 (Ubuntu)
Content-Length: 35
Content-Type: application/json; charset=utf8

{"error":"Authentication failure."}

Appreciate your help as I need this asap.

Regards
Ravikumar


More information about the Koha mailing list