{"error":"Authentication failure."} in koha 21.11
i am using koha 21.11 enable all system preference for rest api's for koha. generate secret code and client id, give full rights to patron enabled RESTBasicAuth RESTOAuth2ClientCredentials RESTPublicAnonymousRequests RESTPublicAPI but when i access http://111.68.97.170:8005/api/v1/patrons/ error show {"error":"Authentication failure."} am i missing something? also enabled plack for koha waiting for response -- *Zahid*
I suppose you are using Apache for the web server. Please take a look at the 'CGIPassAuth On' option, I believe this may be part of your problem. Specifically, in the <Directory "/usr/share/koha/api"> section of the /etc/koha/apache-shared-intranet.conf file. It is possible that your program needs to watch for the auth failure message, and try to do something like Basic Authentication with the client id and secret when it sees that message. Devs, Perhaps the CGIPassAuth option needs to be added as part of Koha's Apache config in the file I mention above? On Thu, May 25, 2023 at 5:01 AM Zahid Iqbal <zahidiqbal.isb@gmail.com> wrote:
i am using koha 21.11 enable all system preference for rest api's for koha. generate secret code and client id, give full rights to patron enabled RESTBasicAuth RESTOAuth2ClientCredentials RESTPublicAnonymousRequests RESTPublicAPI
but when i access http://111.68.97.170:8005/api/v1/patrons/ error show {"error":"Authentication failure."} am i missing something? also enabled plack for koha waiting for response
-- *Zahid* _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/
-- Michael Hafen Washington County School District Technology Department Systems Analyst
This issue was resolved on IRC, see the log (and scroll back for the troubleshooting): https://irc.koha-community.org/koha/2023-05-25#i_2488523 David Nind New Zealand
participants (3)
-
David Nind -
Michael Hafen -
Zahid Iqbal