I have two servers:
- Server A - Express/FeathersJS - publicly accessible, has authentication via jwt
- Server X - Django app - not publicly accessible - no authentication necessary
Server A consists of several APIs, an authentication API via JWT, and a front-end javascript app to allow the user to access the API's and sign-in.
Server X consists of a front end app with some APIs as well, but is not publicly accessible and has no authentication to access the apps.
My goal is to allow users to sign into Server A, and then access Server X through a proxy.
So - I've implemented the express middleware http-proxy-middleware
. Its working, except when I try to protect the route using some sort of authentication - the built-in methods of validating JWT expect an Authorization bearer
jwt header, which is impossible to do with GET
requests like in my case for accessing this application.
Anyone have any suggestions?