I have separate auth service and products service. I need to have an api gateway in front of the services and do this function for protected url:
- Call the auth service and validates the user token
- if token is valid attach the user id to the request and make the request to products service.
Is there any API gateway supports this custom logic to handle requests ?
Thanks.