[Koha] Koha Rest API basic authentication failure - URGENT

Joonas Kylmälä joonas.kylmala at helsinki.fi
Mon Dec 28 23:13:32 NZDT 2020


Hi,

one possible reason is too long password, I know that at least <= 32
characters work.

Joonas

On 27/12/2020 15:41, ravikumar c wrote:
> 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
> _______________________________________________
> 
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
> 

-- 
Joonas Kylmälä
Tietojärjestelmäasiantuntija

Kansalliskirjasto
Kirjastoverkkopalvelut
PL 15 (Unioninkatu 36)
00014 Helsingin yliopisto


More information about the Koha mailing list