Hi Julian,

I was thinking that I'd let Koha handle authentication and authorization for 
the requests, and then proxy them. 

Also, Koha can define routes dynamically. Using Nginx or Apache to proxy would 
involve manual custom configuration that would need to be maintained. 

In my case, I want to add a Koha plugin which injects an API route, and that 
API route then proxies as per the Koha plugin business logic. 

David Cook
Systems Librarian
Prosentient Systems
72/330 Wattle St
Ultimo, NSW 2007
Australia

Office: 02 9212 0899
Online: 02 8005 0595

-----Original Message-----
From: Koha-devel <koha-devel-boun...@lists.koha-community.org> On Behalf Of 
Julian Maurice
Sent: Thursday, 9 July 2020 10:22 PM
To: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Add Koha API Route to Proxy to Backend Service

Hi,

You probably already have nginx or apache that can redirect requests to the 
proper backend. Why do you need Koha to do that ?

Le 09/07/2020 à 13:49, dc...@prosentient.com.au a écrit :
> Hi all,
> 
> I was chatting with lmstrand on IRC, and we both came up with separate 
> features where we’d essentially want Koha to proxy our HTTP requests  
> to the Koha API endpoint to a backend service running on the Koha server.
> 
> What do people think about using the Koha HTTP API that way?
> 
> Or would it just make more sense to run up Kong (or another API 
> gateway) on the Koha server, and use it to proxy HTTP requests to 
> backend services running on the Koha server? I think in both our cases 
> Koha is itself only tangentially related. (lmstrand’s is a SIP2 client 
> daemon available over HTTPS, while mine is a OAI-PMH harvester daemon 
> available over HTTPS)
> 
> The advantage of using the Koha API is that it keeps everything 
> together. The disadvantage is that we might not want to use Koha to 
> proxy requests?
> 
> The advantage of Kong is that it keeps a separation of concerns, Kong 
> has a tonne of plugins that make working with APIs a great experience.
> The disadvantage is that it’s yet another dependency.
> 
> David Cook
> 
> Systems Librarian
> 
> Prosentient Systems
> 
> 72/330 Wattle St
> 
> Ultimo, NSW 2007
> 
> Australia
> 
> Office: 02 9212 0899
> 
> Online: 02 8005 0595
> 
> 
> _______________________________________________
> Koha-devel mailing list
> Koha-devel@lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/ git : 
> http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
> 

-- 
Julian Maurice
BibLibre
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to