I am trying to develop an API gateway for my web application.
I am authenticating the users using oauth2.0
and generating jwt
.
After a user is authenticated and authorized , I want to proxy the request to the application.
I need to develop the authentication mechanism since there are custom logic that I need to execute. But the proxy is standard and nothing special.
Instead of developing the proxy mechanism myself, I thought of using out of the box product like apache httpd
.
I am pretty familiar with it and used it in a couple of projects as a proxy server, but never before added any custom functionality.
I need to add an authentication phase before the proxy is executed.
How can I achieve this with a known web server instead of developing my own?