[Koha] Koha Rest API basic authentication failure - URGENT
Tomas Cohen Arazi
tomascohen at gmail.com
Mon Dec 28 03:46:48 NZDT 2020
What Koha version is it? It looks like basic authentication is disabled, or
the credentials are wrong
https://git.koha-community.org/Koha-community/Koha/src/branch/master/Koha/REST/V1/Auth.pm#L107
On Sun, Dec 27, 2020, 10:42 ravikumar c <ravikumarc2002 at gmail.com> 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
>
More information about the Koha
mailing list